I am using yDoc from www.yworks.com to generate java docs. I however, encounter the following error when using jdk 8. One way to avoid this issue is to use java 7 in my code, but, I cannot take this option because it means I also have to spend refactoring to use java 7 wherever there is java 8 constructs. Is there a way of running the compiler in java 8 and the javadoc in java 7?
I will also appreciate a detailed explanation why this exception is happening because I am aware that java 8 has the class the method com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.getConstructorCustomTags()
Below is the full error from 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)