[Bug 787] New: IcedTea javac fails to compile certain generic expressions (Reduced test case included)

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Wed Sep 21 21:43:49 PDT 2011


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=787

           Summary: IcedTea javac fails to compile certain generic
                    expressions (Reduced test case included)
           Product: IcedTea
           Version: 6-1.10.3
          Platform: all
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea6
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: alecm at gmx.com


Created an attachment (id=570)
 --> (http://icedtea.classpath.org/bugzilla/attachment.cgi?id=570)
Reduced test case

The attached test case was derived from IntelliJ IDEA, which fails to build
using IcedTea. The same case works fine with Sun JDK.

Does not work with IcedTea:
$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.3) (Gentoo build 1.6.0_22-b22)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
$ javac IcedTeaTest.java 
IcedTeaTest.java:9: incompatible types; no instance(s) of type variable(s) T
exist so that java.util.Iterator<T> conforms to
java.util.Iterator<java.lang.String>
found   : <T>java.util.Iterator<T>
required: java.util.Iterator<java.lang.String>
        return TestIterator.create(bar());
                                  ^
1 error

Works with Sun JDK
$ java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
$ javac IcedTeaTest.java 
$ ls
IcedTeaTest.class  IcedTeaTest.java  TestIterator.class


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the distro-pkg-dev mailing list