编辑错误

今天编辑一个工程出现如下错误

[javac] E:\java\acegicas\contactsforchapter5basic\src\sample\contact\AdminPe
rmissionController.java:43: warning: unmappable character for encoding GBK
[javac] * @version $Id: AdminPermissionController.java 1754 2006-11-17 02:0
1:21 +0000 (鏄熸湡浜?, 17 鍗佷竴鏈? 2006) benalex $
[javac]
^
[javac] E:\java\acegicas\contactsforchapter5basic\src\sample\contact\Contact
Manager.java:27: warning: unmappable character for encoding GBK
[javac] * @version $Id: ContactManager.java 1754 2006-11-17 02:01:21 +0000
(鏄熸湡浜?, 17 鍗佷竴鏈? 2006) benalex $
[javac]
^
[javac] E:\java\acegicas\contactsforchapter5basic\src\sample\contact\Contact
Manager.java:27: warning: unmappable character for encoding GBK
[javac] * @version $Id: ContactManager.java 1754 2006-11-17 02:01:21 +0000
(鏄熸湡浜?, 17 鍗佷竴鏈? 2006) benalex $
[javac]
^
[javac] An exception has occurred in the compiler (1.5.0_02). Please file a
bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) af
ter checking the Bug Parade for duplicates. Include your program and the followi
ng diagnostic in your report. Thank you.
[javac] java.nio.BufferOverflowException
[javac] at java.nio.Buffer.nextPutIndex(Buffer.java:419)
[javac] at java.nio.HeapCharBuffer.put(HeapCharBuffer.java:145)
[javac] at com.sun.tools.javac.parser.Scanner.decode(Scanner.java:397)
[javac] at com.sun.tools.javac.parser.Scanner.<init>(Scanner.java:296)
[javac] at com.sun.tools.javac.parser.Scanner.<init>(Scanner.java:235)
[javac] at com.sun.tools.javac.parser.Scanner$Factory.newScanner(Scanner
.java:69)
[javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:264)
[javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:291)
[javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.ja
va:408)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:592)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:544)
[javac] at com.sun.tools.javac.Main.compile(Main.java:67)
[javac] at com.sun.tools.javac.Main.main(Main.java:52)

BUILD FAILED
E:\java\acegicas\contactsforchapter5basic\gbc.xml:75: Compile failed; see the co
mpiler error output for details.

Total time: 1 second


解决办法,把包含乱码的注释删掉


/**
* Validates {@link WebContact}.
*
* @author Ben Alex
* @version $Id: WebContactValidator.java 1740 2006-11-14 02:30:00 +0000 (鏄熸湡浜�, 14 鍗佷竴鏈� 2006) benalex $
*/
阅读更多

没有更多推荐了,返回首页