您可通过以下方式消除这一错误:
javac -XDignore.symbol.file=true
这 s倒了使用侵权行为的争论(ct.sym)。 系按违约情况使用,需要编纂成目标旧版本。
ct.sym
does not includes all categories from rt.jar. 由于使用<代码>sun.* 这些班级不得在<代码>ct.sym上使用,因为汇编工作失败。
将电话移至sun.*
应当删除这一问题。 (使用太阳能包裹的做法是错误的)
References :
https://blogs.oracle.com/geertjan/ctsym-steals-the-asm-class”rel=“noreferer”>https://blogs.oracle.com/geertjan/ctsym-steals-the-asm-class
事情的真相是,在JDK有所谓的“历史”。 当javac正在编纂法典时,它就没有与侵权行为的联系。 相反,它使用特殊标志文件校准/字眼,并带有分类标签。 内部的JDK课程没有列入这一文号,因为这些课程是内部课程。 你们根本不想使用这些工具。
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6778491
This is not a compiler issue. javac is behaving correctly, according to the information provided in ct.sym.
The issue belongs with those who decide what should be available with (and what should be hidden by) ct.sym
I cannot as yet determine the correct category for this bug.
This is intentional. Perhaps the package name "com.sun.xml.internal...." might be seen as a hint.
Users should not write code that depends on internal JDK implementation classes. Such classes are internal implementation details of the JDK and subject to change without notice.
http://openjdk.java.net/jeps/247
For JDK N and --release M, M < N, signature data of the documented APIs of release M of the platform is needed. This data is stored in the $JDK_ROOT/lib/ct.sym file, which is similar, but not the same, as the file of the same name in JDK 8. The ct.sym file is a ZIP file containing stripped-down class files corresponding to class files from the target platform versions.
For JDK N and --release N,the JDK s own image is used as the source of the class files to compile against. The list of observable modules is limited, however, to the documented modules and the jdk.unsupported module.
<><>>>>>>>><>>>>>>>>
In this case, it would be better to not use the ClientTransportException
class and replaced it by javax.xml.ws.WebServiceException
, as suggested by artbristol.