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

Inconsistent compiler behaviour for generics compared with Sun Java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0M9
    • None
    • JDK
    • None

    Description

      The Harmony javac compiler seems to be rather more lenient than the Sun Java 1.5 compiler with regard to how it handles some types of generics.

      See the attached samples. They all compile OK on Harmony.

      TestGeneric1.java - compiles OK on Sun
      TestGeneric2.java - 2 compilation errors on Sun
      TestGeneric3.java - 2 compilation errors on Sun

      See comments in the files which give the error output.

      Attachments

        1. TestGeneric1.java
          0.3 kB
          Sebb
        2. TestGeneric2.java
          0.6 kB
          Sebb
        3. TestGeneric3.java
          0.6 kB
          Sebb

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: