非法人物\ 187 javac

时间:2015-07-27 15:18:15

标签: java jdk1.7

我的源代码在Java 1.6下编译好,但在java 1.7下没有编译:

addText( indent, NBSP + '»' + NBSP );

编译器抛出以下错误:

<message priority="warn"><![CDATA[C:\Build\Nightly\trunk\server\src\uk\co\stasys\ier\reports\capability\CapabilityReport.java:411: error: unclosed character literal]]></message>
<message priority="warn"><![CDATA[            addText( indent, NBSP + '»' + NBSP );]]></message>
<message priority="warn"><![CDATA[                                    ^]]></message>
<message priority="warn"><![CDATA[C:\Build\Nightly\trunk\server\src\uk\co\stasys\ier\reports\capability\CapabilityReport.java:411: error: illegal character: \187]]></message>
<message priority="warn"><![CDATA[            addText( indent, NBSP + '»' + NBSP );]]></message>
<message priority="warn"><![CDATA[                                      ^]]></message>
<message priority="warn"><![CDATA[C:\Build\Nightly\trunk\server\src\uk\co\stasys\ier\reports\capability\CapabilityReport.java:411: error: unclosed character literal]]></message>
<message priority="warn"><![CDATA[            addText( indent, NBSP + '»' + NBSP );]]></message>
<message priority="warn"><![CDATA[                                       ^]]></message>

它也可以使用java 1.7通过IntelliJ IDEA编译好。

0 个答案:

没有答案