Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Doesn't build on JDK7 #3

Open
fhuberts opened this issue Nov 7, 2013 · 0 comments
Open

Doesn't build on JDK7 #3

fhuberts opened this issue Nov 7, 2013 · 0 comments

Comments

@fhuberts
Copy link

fhuberts commented Nov 7, 2013

Started by user Ferry Huberts
Building in workspace /var/lib/jenkins/workspace/bndtools-rt_master
Pruning obsolete local branches
Fetching changes from the remote Git repository
Fetching upstream changes from git://github.com/bndtools/bndtools-rt.git
Checking out Revision 398619b6fe30a6ae21dc2d0294cdd4556ea62725 (origin/master)
Cleaning workspace
Resetting working tree
[bndtools-rt_master] $ ant test release
Buildfile: /var/lib/jenkins/workspace/bndtools-rt_master/build.xml

test:

template.init:
     [echo] Enter project org.bndtools.rt.rest.test

init:

dependencies:

template.init:
     [echo] Enter project org.bndtools.inject

init:

dependencies:

compile:
    [javac] Compiling 2 source files to /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.inject/bin
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.inject/src/org/bndtools/inject/Optional.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.inject/src/org/bndtools/inject/TargetFilter.java
     [copy] Copying 1 file to /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.inject/bin

build:

template.init:
     [echo] Enter project org.bndtools.service

init:

dependencies:

compile:
    [javac] Compiling 5 source files to /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/bin
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/src/org/bndtools/service/endpoint/Endpoint.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/src/org/bndtools/service/store/Cursor.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/src/org/bndtools/service/store/DB.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/src/org/bndtools/service/store/Store.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/src/org/bndtools/service/store/package-info.java
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] 1 warning
    [javac] Creating empty /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/bin/org/bndtools/service/store/package-info.class
     [copy] Copying 2 files to /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.service/bin

build:

template.init:
     [echo] Enter project org.bndtools.rt.rest

init:

dependencies:

compile:
    [javac] Compiling 15 source files to /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/bin
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/BundleConstants.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ImmutableApplication.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceClassTracker.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceRegistration.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceServiceTracker.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/RestAppServletManager.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ServerComponent.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ServletManager.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/CollectionFactory.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/InjectAnnotationInjectableProvider.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/OptionalAnnotationInjectableProvider.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/TargetFilterAnnotationInjectableProvider.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/utils/log/LogTracker.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/utils/log/LogUtils.java
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceRegistration.java:30: error: type ServiceRegistration does not take parameters
    [javac]     private ServiceRegistration<Endpoint> svcReg;
    [javac]                                ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:196: error: type ServiceReference does not take parameters
    [javac]     void addCloseable(HttpContext httpContext, final BundleContext bundleContext, final Collection<? extends ServiceReference<?>> serviceRefs) {
    [javac]                                                                                                                              ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceClassTracker.java:73: error: incompatible types
    [javac]         String requires = bundle.getHeaders().get(Constants.REQUIRE_CAPABILITY);
    [javac]                                                  ^
    [javac]   required: String
    [javac]   found:    Object
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceClassTracker.java:97: error: incompatible types
    [javac]         String aliasStr = bundle.getHeaders().get(REST_ALIAS);
    [javac]                                                  ^
    [javac]   required: String
    [javac]   found:    Object
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceClassTracker.java:113: error: incompatible types
    [javac]         String endpointName = bundle.getHeaders().get(REST_ENDPOINT_NAME);
    [javac]                                                      ^
    [javac]   required: String
    [javac]   found:    Object
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/ResourceClassTracker.java:121: error: incompatible types
    [javac]         String classListStr = bundle.getHeaders().get(REST_CLASSES);
    [javac]                                                      ^
    [javac]   required: String
    [javac]   found:    Object
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:132: error: type ServiceReference does not take parameters
    [javac]                     Collection<ServiceReference<S>> references = bundleContext.getServiceReferences(serviceClass, filter);
    [javac]                                                ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:139: error: type ServiceReference does not take parameters
    [javac]                     List<ServiceReference<S>> refsToRelease = new ArrayList<ServiceReference<S>>(references.size());
    [javac]                                          ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:139: error: type ServiceReference does not take parameters
    [javac]                     List<ServiceReference<S>> refsToRelease = new ArrayList<ServiceReference<S>>(references.size());
    [javac]                                                                                             ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:140: error: type ServiceReference does not take parameters
    [javac]                     for (ServiceReference<S> reference : references) {
    [javac]                                          ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:164: error: type ServiceReference does not take parameters
    [javac]                     ServiceReference<Object> serviceRef = (ServiceReference<Object>) references.iterator().next();
    [javac]                                     ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:164: error: type ServiceReference does not take parameters
    [javac]                     ServiceReference<Object> serviceRef = (ServiceReference<Object>) references.iterator().next();
    [javac]                                                                            ^
    [javac] /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java:205: error: type ServiceReference does not take parameters
    [javac]                 for (ServiceReference<?> serviceRef : serviceRefs) {
    [javac]                                      ^
    [javac] Note: /var/lib/jenkins/workspace/bndtools-rt_master/org.bndtools.rt.rest/src/org/bndtools/rt/rest/jaxrs/providers/BaseInjectableProvider.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 13 errors

BUILD FAILED
/var/lib/jenkins/workspace/bndtools-rt_master/build.xml:14: The following error occurred while executing this line:
/var/lib/jenkins/workspace/bndtools-rt_master/cnf/build-template.xml:49: The following error occurred while executing this line:
/var/lib/jenkins/workspace/bndtools-rt_master/cnf/build-template.xml:67: Compile failed; see the compiler error output for details.

Total time: 6 seconds
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
Recording test results
Finished: FAILURE
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant