Bug 150745 - Java Compiler seems to process non-encoded version of .java files
Summary: Java Compiler seems to process non-encoded version of .java files
Status: VERIFIED DUPLICATE of bug 149028
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-15 19:09 EDT by Ish Harshawat CLA
Modified: 2006-08-12 05:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ish Harshawat CLA 2006-07-15 19:09:29 EDT
We use a preprocessor, sjpp, to deal with our J2ME code. The preprocessor works by allowing ifdefs in the code with the ability to define special text encodings. In previous versions of Eclipse (3.1 and prior) we were able to change the encoding of the project by selecting Project Properties->Info->Text File Encoding. After this, the .java files were converted using this encoding (the appropriate pieces of code were commented out).

We could also compile fine, and the compiler would use the post-encoded version of the files. However, in Eclipse 3.2 the compiler seems to be using the non-encoded version of the files and we get compile errors.
Comment 1 Jerome Lanneluc CLA 2006-07-17 05:03:54 EDT

*** This bug has been marked as a duplicate of 149028 ***
Comment 2 Jerome Lanneluc CLA 2006-07-17 07:12:51 EDT
Note that a 3.2.1 preview (including the fix to bug 149028) is available at
http://www.eclipse.org/jdt/core/r3.2/index.php#UPDATES.

Could you please verify that this fixes your problem ?

Comment 3 Ish Harshawat CLA 2006-08-11 14:26:12 EDT
I installed the patch and it seems to work now. Thanks for your help. -Ish
Comment 4 Frederic Fusier CLA 2006-08-12 05:42:07 EDT
Thanks for the feedback