Bug 343362

Summary: Invalid character constant using § sign on Windows
Product: [Tools] AspectJ Reporter: Roger Westerlund <roger.westerlund>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: andrew.eisenberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Roger Westerlund CLA 2011-04-20 05:59:20 EDT
Build Identifier: 20110218-0911

If you use paragraph sign as a character constant '§' you get the error Invalid character constant when your project is AspectJ enabled. The same problem is not visible if you run Eclipse under Linux.

Reproducible: Always

Steps to Reproduce:
1. Create a Java project
2. Add a class containing this:

public class Test {
	public static void main(String[] args) {
		System.out.println("Hello§Goodbye".replace('§', '\n'));
	}
}

3. Run the fantastic program to make sure that it has been compiled.
4. Enable AspectJ by selecting Configure > Convert to AspectJ Project on the Java project you created above.

When the source has been recompiled you will see an error regarding an Invalid character constant. This problem is not present if you do the same thing on Eclipse (Build ID 20110301-1815) running under Linux.
Comment 1 Andrew Eisenberg CLA 2011-04-20 12:23:25 EDT
What version of AJDT are you using?  We have recently fixed bug 290741 and it is available in a dev build.  If you haven't already, please upgrade to the latest nightly that and let me know if this fixes your problem.

Please note that you may need to set a specific encoding on your AspectJ project.

dev update site is here:
http://download.eclipse.org/tools/ajdt/36/dev/update