Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6529

[jdktools]hdk javac only support compliance 1.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.0M3
    • None
    • None
    • All
    • Patch Available

    Description

      In jdktools/modules/jdktools/src/main/java/org/apache/harmony/tools/javac/Main.java, we are add '-1.5' as the compliance level. This will override any specify level which given by the user. For example, javac -source 1.6 -target 1.6 will report unsupport. A simply change '-1.5' to '-1.7' will solve this problem. From the page http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm, we can find jdt compiler supports '-1.7'.

      Attachments

        1. HARMONY-6529.diff
          0.7 kB
          Charles Lee
        2. HARMONY-6529_Java6.diff
          0.7 kB
          Charles Lee

        Issue Links

          Activity

            People

              hindessm Mark Hindess
              littlee Charles Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: