Bug 118417 - Difference between javac and eclipse compiler
Summary: Difference between javac and eclipse compiler
Status: VERIFIED DUPLICATE of bug 111898
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-29 09:39 EST by robert mycek CLA
Modified: 2006-01-10 09:57 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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