Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-231

Build fails with compilation errors on Java 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 0.8.0-incubator
    • 1.0.0
    • Build
    • None

    Description

      Java6 build successful. This is what I get Java7

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1:36.308s
      [INFO] Finished at: Fri Mar 16 12:03:33 CET 2012
      [INFO] Final Memory: 238M/581M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project org.apache.ace.deployment.verifier: Com
      pilation failure: Compilation failure:
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierResolverState.java:[164,44] error: inc
      ompatible types
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierResolverState.java:185: error: incompa
      tible types
      [ERROR] String filter = req.getDirectives().get(
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:436: error: incompatible types
      [ERROR] for (BundleCapability cap : revision.getWiring().getCapabilities(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleCapability
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:535: error: incompatible types
      [ERROR] for (BundleWire wire : revision.getWiring().getRequiredWires(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleWire
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:590: error: incompatible types
      [ERROR] for (BundleRequirement req : revision.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:592: error: incompatible types
      [ERROR] String resolution = req.getDirectives().get(Constants.RESOLUTION_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:761: error: incompatible types
      [ERROR] : candCap.getRevision().getWiring().getRequiredWires(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleWire
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:767: error: incompatible types
      [ERROR] .getDirectives().get(Constants.VISIBILITY_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:788: error: incompatible types
      [ERROR] : candCap.getRevision().getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:793: error: incompatible types
      [ERROR] req.getDirectives().get(Constants.VISIBILITY_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:1316: error: incompatible types
      [ERROR] for (BundleRequirement req : revision.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:1484: error: incompatible types
      [ERROR] for (BundleRequirement req : revision.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\ResolverImpl.java:1538: error: constructor Resolve
      rWireImpl in class ResolverWireImpl cannot be applied to given types;
      [ERROR] new ResolverWireImpl(
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRevision,BundleRequirement,BundleRevision,BundleCapability
      [ERROR] found: BundleRevision,Object,BundleRevision,Object
      [ERROR] reason: actual argument Object cannot be converted to BundleRequirement by method invocation conversion
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\Candidates.java:279: error: incompatible types
      [ERROR] String resolution = req.getDirectives().get(Constants.RESOLUTION_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\Candidates.java:358: error: incompatible types
      [ERROR] for (BundleWire wire : wiring.getRequiredWires(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleWire
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\Candidates.java:934: error: incompatible types
      [ERROR] for (BundleRequirement r : br.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\Candidates.java:939: error: incompatible types
      [ERROR] for (BundleCapability c : br.getDeclaredCapabilities(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleCapability
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\Candidates.java:1122: error: incompatible types
      [ERROR] String value = modCaps.get(0).getDirectives().get(Constants.SINGLETON_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\HostBundleRevision.java:73: error: incompatible ty
      pes
      [ERROR] for (BundleCapability cap : m_host.getDeclaredCapabilities(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleCapability
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\HostBundleRevision.java:83: error: incompatible ty
      pes
      [ERROR] for (BundleCapability cap : fragment.getDeclaredCapabilities(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleCapability
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\HostBundleRevision.java:103: error: incompatible t
      ypes
      [ERROR] for (BundleRequirement req : m_host.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\resolver\HostBundleRevision.java:113: error: incompatible t
      ypes
      [ERROR] for (BundleRequirement req : fragment.getDeclaredRequirements(null))
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: BundleRequirement
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierBundleRevision.java:75: error: incompa
      tible types
      [ERROR] for (Entry<String, Object> entry : aliasCaps.get(capIdx).getAttributes().entrySet())
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: Entry<String,Object>
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\felix\framework\util\Util.java:341: error: incompatible types
      [ERROR] String resolution = req.getDirectives().get(Constants.RESOLUTION_DIRECTIVE);
      [ERROR] ^
      [ERROR]
      [ERROR] could not parse error message:   required: String
      [ERROR] found:    Object
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierServiceImpl.java:227: error: type Serv
      iceReference does not take parameters
      [ERROR] public ServiceReference<?>[] getRegisteredServices() {
      [ERROR] ^
      [ERROR]
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierServiceImpl.java:[232,29] error: type
      ServiceReference does not take parameters
      [ERROR]
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierServiceImpl.java:[168,18] error: <anon
      ymous org.apache.ace.deployment.verifier.impl.VerifierServiceImpl$VerifyEnvironmentImpl$3> is not abstract and does not override abstract method adapt(Class) in
       Bundle
      [ERROR]
      [ERROR] C:\bramk\Apache ACE\svn\ace\ace-deployment-verifier\src\main\java\org\apache\ace\deployment\verifier\impl\VerifierServiceImpl.java:[306,19] error: name
      clash: <A>adapt(Class<A>) in <anonymous org.apache.ace.deployment.verifier.impl.VerifierServiceImpl$VerifyEnvironmentImpl$3> and adapt(Class) in Bundle have the
       same erasure, yet neither overrides the other
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bramk Bram de Kruijff
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: