Bug 343362 - Invalid character constant using § sign on Windows
Summary: Invalid character constant using § sign on Windows
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 05:59 EDT by Roger Westerlund CLA
Modified: 2011-04-20 12:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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