Community
Participate
Working Groups
Build 3.0M5+ JDTCore HEAD from 20031202 When running the following program, it will print FAILED, though it should have succeeded. public class X { public static void main(String args[]) { boolean b = true; b = b && false; if (b) { System.out.println("FAILED"); } else { System.out.println("SUCCESS"); } } } Problem is due to compiler misoptimizing expression 'b && false'
This is a regression introduced with fix for bug 46675. Addressed in latest.
Copy-paste bug, the optimized scenario 'x && false' did generate iconst1 instead of iconst0. Fixed
Backported to 2.1 stream (also backported regression tests onto ConformTest#238- 242).
Verified for 3.0M6
Verified for 2.1.3 with build M200402251535.