Summary: | [1.4][compiler]Inconsistency Output Bytes between javac and Eclipse Compiler with options -g{lines, vars} | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | william.zeng <willie_zane> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED INVALID | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | CC: | Olivier_Thomann, philippe_mulet, srikanth_sankaran | ||||
Version: | 3.3.1 | ||||||
Target Milestone: | 3.7 M2 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
william.zeng
2008-08-15 02:36:31 EDT
You cannot expect .class files produced by javac and the Eclipse compiler to be identical byte-per-byte. If you better describe the differences we might tell you why they are there. Would you have a source file to try ? Lowering severity as right now there is not enough information to classify this as critical. Created attachment 110186 [details]
source file and runtime file, disassembly result
Comment on attachment 110186 [details]
source file and runtime file, disassembly result
Hey, I think about it is not a bug but a functional requirement. Whether, we can select classical javac but not eclipse compiler in eclipse? Pls don't suggest me to use Ant integrated with Eclipse. Thx!
You cannot run javac from Eclipse without using an ant script. You could however run the Eclipse batch compiler from your ant script to make sure you end up with the same .class files using Eclipse and using an ant script outside of Eclipse. The differences are mostly different indexes in the constant pool. Nothing to worry about. Closing as INVALID. There is no reason why Eclipse compiler output would be identical to javac one. Verified for 3.7 M2 |