I get "No ShortName annotation found for class: XXXX" when generating Javadoc from Eclipse. But ShortName annotation is there (see the code).
When compiling that same identical code from the new SLC Tool, I don't get any errors and it compiles fine, and works fine in B4A.
Error code:
When compiling that same identical code from the new SLC Tool, I don't get any errors and it compiles fine, and works fine in B4A.
B4X:
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.Author;
import anywheresoftware.b4a.BA.DependsOn;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
import anywheresoftware.b4a.keywords.Common;
@Author("xxx")
@Version(1.0f)
@ShortName("XXXX")
public class XXXX extends XXXXService {
}
Error code:
B4X:
No ShortName annotation found for class: XXXX
java.lang.NullPointerException
at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:67)
at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:29)
at com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:441)
at BADoclet.writeClass(BADoclet.java:155)
at BADoclet.start(BADoclet.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)