pastebin

[android-building] com.google.
  1. AOSP version: master
  2.  
  3. Stack:
  4.  
  5. javadoc: error - In doclet class com.google.doclava.Doclava,  method start has thrown an exception java.lang.reflect.InvocationTargetException
  6. java.lang.NullPointerException
  7.         at jdk.javadoc/com.sun.tools.javadoc.main.ExecutableMemberDocImpl.position(ExecutableMemberDocImpl.java:285)
  8.         at com.google.doclava.Converter.convertParameters(Converter.java:291)
  9.         at com.google.doclava.Converter.access$700(Converter.java:48)
  10.         at com.google.doclava.Converter$2.make(Converter.java:467)
  11.         at com.google.doclava.Converter$Cache.obtain(Converter.java:736)
  12.         at com.google.doclava.Converter.obtainMethod(Converter.java:447)
  13.         at com.google.doclava.Converter.access$500(Converter.java:48)
  14.         at com.google.doclava.Converter$8.make(Converter.java:717)
  15.         at com.google.doclava.Converter$Cache.obtain(Converter.java:736)
  16.         at com.google.doclava.Converter.obtainAnnotationInstance(Converter.java:705)
  17.         at com.google.doclava.Converter.convertAnnotationInstances(Converter.java:698)
  18.         at com.google.doclava.Converter.access$800(Converter.java:48)
  19.         at com.google.doclava.Converter$2.make(Converter.java:498)
  20.         at com.google.doclava.Converter$Cache.obtain(Converter.java:736)
  21.         at com.google.doclava.Converter.obtainMethod(Converter.java:447)
  22.         at com.google.doclava.Converter.convertMethods(Converter.java:424)
  23.         at com.google.doclava.Converter.initClass(Converter.java:138)
  24.         at com.google.doclava.Converter.makeInfo(Converter.java:71)
  25.         at com.google.doclava.Doclava.start(Doclava.java:426)
  26.         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  27.         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  28.         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  29.         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  30.         at jdk.javadoc/com.sun.tools.javadoc.main.DocletInvoker.invoke(DocletInvoker.java:333)
  31.         at jdk.javadoc/com.sun.tools.javadoc.main.DocletInvoker.start(DocletInvoker.java:212)
  32.         at jdk.javadoc/com.sun.tools.javadoc.main.Start.parseAndExecute(Start.java:446)
  33.         at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:238)
  34.         at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:224)
  35.         at jdk.javadoc/com.sun.tools.javadoc.Main.execute(Main.java:174)
  36.         at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:419)
  37.         at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:344)
  38.         at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
  39.         at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
  40. 1 error
  41.  
  42. Steps to reproduce:
  43.  
  44. $ make <droiddoc module in vendor/>
  45.  
  46. droiddoc {
  47.     name: "com.vendor.component-api-docs",
  48.     custom_template: vendor_droiddoc_template,
  49.     srcs: [
  50.         ":vendor_component_source_files",
  51.     ],
  52.     libs: [vendor_module],
  53.     args: "-stubpackages com.vendor.component -showAnnotation com.vendor.component.SuppressAutoDoc",
  54.     installable: false,
  55. }
  56.  
  57.  
  58. This error did not occur in Android 10.
  59.  
  60. I have looked into the differences in the Android 10 and Android master commands:
  61. * Android 10 uses JDK9 and master uses JDK11. Changing JDK11 to JDK9 does not fix problem.
  62. * I reverted external/doclava to the Android 10 SHA but this did not fix the issue either.
  63.  
  64. There's been a lot of changes to build/soong/java/droiddoc.go between Q and master
Parsed in 0.009 seconds