Bug 118417

Summary: Difference between javac and eclipse compiler
Product: [Eclipse Project] JDT Reporter: robert mycek <robert.mycek>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description robert mycek CLA 2005-11-29 09:39:08 EST
After compilation of source code:

public class Foo {
    public static void main(String[] args) {
        int i = 0;
        System.out.print(i = i++);
        System.out.println(i);
    }
}

using eclipse compiler and running from console we get: 01
The same code compiled with javac (1.5.0_04) and run from console get: 00
Comment 1 Olivier Thomann CLA 2005-11-29 09:51:14 EST

*** This bug has been marked as a duplicate of 111898 ***
Comment 2 Olivier Thomann CLA 2006-01-10 09:57:12 EST
Verified in M20060109-0800 for 3.1.2