[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/32844] New: EnumSet causes code to be miscompiled
From: |
robilad at kaffe dot org |
Subject: |
[Bug classpath/32844] New: EnumSet causes code to be miscompiled |
Date: |
21 Jul 2007 14:15:58 -0000 |
When building javac with ecj & gcj from SVN head, and running the jtreg test
suite with that javac on Sun's 1.6 JDK, I get a lot of failed regression tests
(~70) due to this exception:
An exception has occurred in the compiler (1.6.0_02). Please file a bug at the
Java Developer Connection (http://java.sun.com/webapps/bugreport) after
checking the Bug Parade for duplicates. Include your program and the following
diagnostic in your report. Thank you.
java.lang.NoSuchMethodError: java.util.EnumSet.add(Ljava/lang/Enum;)Z
at com.sun.tools.javac.code.Lint.<init>(Lint.java:109)
at com.sun.tools.javac.code.Lint.instance(Lint.java:58)
at com.sun.tools.javac.util.Paths.setContext(Paths.java:96)
at com.sun.tools.javac.util.Paths.<init>(Paths.java:90)
at com.sun.tools.javac.util.Paths.instance(Paths.java:74)
at
com.sun.tools.javac.util.JavacFileManager.setContext(JavacFileManager.java:161)
at
com.sun.tools.javac.util.JavacFileManager.<init>(JavacFileManager.java:152)
at
com.sun.tools.javac.util.JavacFileManager$1.make(JavacFileManager.java:138)
at
com.sun.tools.javac.util.JavacFileManager$1.make(JavacFileManager.java:136)
at com.sun.tools.javac.util.Context.get(Context.java:147)
at com.sun.tools.javac.util.Context.get(Context.java:176)
at com.sun.tools.javac.main.Main.compile(Main.java:366)
at com.sun.tools.javac.main.Main.compile(Main.java:307)
at com.sun.tools.javac.main.Main.compile(Main.java:298)
at com.sun.tools.javac.Main.compile(Main.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sun.javatest.lib.JavaCompileCommand.run(JavaCompileCommand.java:224)
at
com.sun.javatest.regtest.CompileAction.runSameJVM(CompileAction.java:403)
at com.sun.javatest.regtest.CompileAction.run(CompileAction.java:232)
at
com.sun.javatest.regtest.RegressionScript.run(RegressionScript.java:85)
at com.sun.javatest.Script.run(Script.java:211)
at
com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:148)
at
com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:24)
at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:47)
result: Failed. Compilation failed: Failed. Compilation failed
test result: Failed. Compilation failed: Failed. Compilation failed
>From looking at
http://www.kaffe.org/%7Estuart/japi/htmlout/h-classpath-jdk6#pkg_java_util
it seems that Classpath's EnumSet has some problems:
# class java.util.EnumSet: concrete in classpath, but abstract in jdk6
# method java.util.EnumSet.add(T): no bridge method in jdk6
# method java.util.EnumSet.iterator(): concrete in classpath, but abstract in
jdk6
# method java.util.EnumSet.size(): concrete in classpath, but abstract in jdk6
Is there a specific reason why we differ from JDK here?
Eclipse Java Compiler 0.771, 3.3.0
gij (GNU libgcj) version 4.3.0 20070718 (experimental)
--
Summary: EnumSet causes code to be miscompiled
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: robilad at kaffe dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32844
- [Bug classpath/32844] New: EnumSet causes code to be miscompiled,
robilad at kaffe dot org <=
- [Bug classpath/32844] EnumSet causes code to be miscompiled, robilad at kaffe dot org, 2007/07/22
- [Bug classpath/32844] EnumSet causes code to be miscompiled, robilad at kaffe dot org, 2007/07/22
- [Bug classpath/32844] EnumSet causes code to be miscompiled, robilad at kaffe dot org, 2007/07/22
- [Bug classpath/32844] EnumSet causes code to be miscompiled, gnu_andrew at member dot fsf dot org, 2007/07/22
- [Bug classpath/32844] EnumSet causes code to be miscompiled, robilad at kaffe dot org, 2007/07/23
- [Bug classpath/32844] EnumSet causes code to be miscompiled, robilad at kaffe dot org, 2007/07/31