Bug 155396 - [probably 3.2 compiler]False duplicate case statement
Summary: [probably 3.2 compiler]False duplicate case statement
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 1.6.0 M1   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 10:47 EDT by Robert Munteanu CLA
Modified: 2008-01-22 12:33 EST (History)
1 user (show)

See Also:


Attachments
Screenshot of the false duplicate case statement (7.72 KB, image/jpeg)
2006-08-28 10:48 EDT, Robert Munteanu CLA
no flags Details
Sample project with defect (3.82 KB, application/zip)
2006-09-05 06:32 EDT, Robert Munteanu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Munteanu CLA 2006-08-28 10:47:21 EDT
Hi,

I have converted an existing java project to have aspectj capability. I have received a wrongful duplicate case statement. Please note that the encoding of the project is ISO-8859-1. Changing to UTF-8 did not help.

I have received a similar error when checking out the project as UTF-8 which was fixed by specifiying the propere encoding of the project ( ISO-8859-1 ).
Comment 1 Robert Munteanu CLA 2006-08-28 10:48:06 EDT
Created attachment 48878 [details]
Screenshot of the false duplicate case statement
Comment 2 Matt Chapman CLA 2006-09-04 09:04:08 EDT
Please could you attach a zip file containing a test project for this.
Comment 3 Robert Munteanu CLA 2006-09-05 06:32:11 EDT
Created attachment 49391 [details]
Sample project with defect

Please check defects.DuplicateSwitch
Comment 4 Matt Chapman CLA 2006-09-12 11:48:12 EDT
Thanks for the testcase. I can now reproduce this on Linux (it works on Windows) with a recent AJDT dev build. The AspectJ compiler is issuing the errors, so I'm passing this bug over. As the Java compiler in Eclipse 3.2 doesn't give the same errors, this bug may be because the AspectJ compiler is based on an earlier version of the Eclipse compiler.
Comment 5 Andrew Clement CLA 2008-01-22 12:33:59 EST
Looks to be fixed in AJDT1.5.2 and AspectJ1.6.0m1.  AJDT is available from the downloads page.