Summary: | compiled class (eclipse) runs with error (compiled with JDK it runs without) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Stefan2110 |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED NOT_ECLIPSE | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | Olivier_Thomann, Stefan2110 |
Version: | 3.6 | ||
Target Milestone: | 3.6 M6 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
Stefan2110
2010-02-17 13:08:23 EST
I'll investigate. If I run the class file compiled by Eclipse using: java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode) I do get the expected output. Could you please try to run your test case on the VM you have and disable the JIT ? I'll try to retrieve the VM that you are using, but so far it looks like a VM issue. This looks like a VM issue: ...>\Test\jdk\jdk6_18\bin\java X ERROR: Boolean invert test1=true test2=false Everything as it should be! ...>\Test\jdk\jdk6_18\bin\java -Djava.compiler=none X Everything as it should be! Everything as it should be! So no JIT over the same .class file works. Differences in the javap can be explained by the way the for loop is generated. Nothing noticable on that side. Closing as NOT_ECLIPSE. Note that 1.6.0_13 64Bit VM works fine. Verified |