Community
Participate
Working Groups
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 ).
Created attachment 48878 [details] Screenshot of the false duplicate case statement
Please could you attach a zip file containing a test project for this.
Created attachment 49391 [details] Sample project with defect Please check defects.DuplicateSwitch
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.
Looks to be fixed in AJDT1.5.2 and AspectJ1.6.0m1. AJDT is available from the downloads page.