Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1006

Compilation error with JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When I try to compile Aries with JDK 7, I have:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project org.apache.aries.testsupport.unit: Compilation failure: Compilation failure:
      [ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.5
      [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:187: warning: [deprecation] toURL() in File has been deprecated
      [ERROR] this(name,properties,location.toURL().toExternalForm());
      [ERROR] ^
      [ERROR]
      [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[239,17] [deprecation] toURL() in File has been deprecated
      [ERROR]
      [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[263,60] [deprecation] toURL() in File has been deprecated
      [ERROR]
      [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[328,65] [deprecation] toURL() in File has been deprecated
      [ERROR]

      It's due to some parent POM definition which force JDK5 support (target and source).

      I don't think that the JDK5 support is still required. I gonna prepare a couple of patches about that.

      Attachments

        1. ARIES-1006.patch
          165 kB
          Jean-Baptiste Onofré

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jbonofre Jean-Baptiste Onofré
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: