#61 Compilation lacks encoding setting

open
nobody
None
5
2009-01-19
2009-01-19
No

Building prefuse I get the following errors:

compile-prefuse:
[copy] Copying 35 files to /home/uqpbecke/dev/prefuse-beta/build/prefuse/classes
[javac] Compiling 355 source files to /home/uqpbecke/dev/prefuse-beta/build/prefuse/classes
[javac] /home/uqpbecke/dev/prefuse-beta/build/prefuse/src/prefuse/action/layout/graph/BalloonTreeLayout.java:17: warning: unmappable character for encoding UTF8
[javac] * <p>The algorithm used is that of G. Melan�on and I. Herman from their
[javac] ^
[javac] /home/uqpbecke/dev/prefuse-beta/build/prefuse/src/prefuse/action/layout/graph/BalloonTreeLayout.java:19: warning: unmappable character for encoding UTF8
[javac] * Mathematics and Computer Sciences, Report Number INS�9817, 1998.</p>
[javac] ^
[javac] /home/uqpbecke/dev/prefuse-beta/build/prefuse/src/prefuse/action/layout/graph/NodeLinkTreeLayout.java:22: warning: unmappable character for encoding UTF8
[javac] * <p>The algorithm used is that of Christoph Buchheim, Michael J�nger,
[javac] ^
[javac] /home/uqpbecke/dev/prefuse-beta/build/prefuse/src/prefuse/util/collections/AbstractHashMap.java:2: warning: unmappable character for encoding UTF8
[javac] Copyright � 1999 CERN - European Organization for Nuclear Research.
[javac] ^
[javac] /home/uqpbecke/dev/prefuse-beta/build/prefuse/src/prefuse/util/collections/IntObjectHashMap.java:2: warning: unmappable character for encoding UTF8
[javac] Copyright � 1999 CERN - European Organization for Nuclear Research.
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 5 warnings

which are caused by running javac on non-ASCII sources without specifying an encoding. The remedy should be just adding a suitable @encoding attribute on Ant's <javac> task.

Discussion


Log in to post a comment.