我正在使用www.yworks.com上的yDoc生成java文档。但是,在使用jdk时遇到以下错误8.避免此问题的一种方法是在我的代码中使用java 7,但是,我不能采用这个选项,因为这意味着我还必须花费重构来使用java 7,无论哪里有java 8构造。有没有办法在java 8中运行编译器和java 7中的javadoc?
我还要详细解释为什么会发生这种异常,因为我知道java 8的类方法是com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.getConstructorCustomTags()
以下是来自maven的完整错误
[ERROR] Exit code: 1 - javadoc: warning - No source files for package com.ebucks.shop.vouchers.vms.tutuka
[ERROR] javadoc: error - In doclet class ydoc.doclets.YStandard, method start has thrown an exception java.lang.reflect.InvocationTargetException
[ERROR] java.lang.NoSuchMethodError: com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.getConstructorCustomTags()[Lcom/sun/tools/doclets/internal/toolkit/taglets/Taglet;
[ERROR] at ydoc.doclets.F$_A.<init>(Unknown Source)
[ERROR] at ydoc.doclets.F.B(Unknown Source)
[ERROR] at ydoc.doclets.F.E(Unknown Source)
[ERROR] at ydoc.doclets.J.setSpecificDocletOptions(Unknown Source)
[ERROR] at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:560)
[ERROR] at ydoc.doclets.J.setOptions(Unknown Source)
[ERROR] at ydoc.doclets.C.A(Unknown Source)
[ERROR] at ydoc.doclets.YStandard.start(Unknown Source)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:497)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
[ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:219)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:205)
[ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:64)
[ERROR] at com.sun.tools.javadoc.Main.main(Main.java:54)