Hi Team, While building the CXF 3.6.5 release, I ran into an error like
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.1:jar (attach-javadocs) on project cxf-rt-ws-security: MavenReportException: Error while generating Javadoc: [INFO] [ERROR] Exit code: 1 [INFO] [ERROR] javadoc: error - An internal exception has occurred. [INFO] [ERROR] (java.lang.ClassCastException: class com.sun.tools.javac.code.Symtab$6 cannot be cast to class com.sun.tools.javac.code.Symbol$ClassSymbol (com.sun.tools.javac.code.Symtab$6 and com.sun.tools.javac.code.Symbol$ClassSymbol are in module jdk.compiler of loader 'app')) [INFO] [ERROR] Please file a bug against the javadoc tool via the Java bug reporting page [INFO] [ERROR] (http://bugreport.java.com) after checking the Bug Database ( http://bugs.java.com) [INFO] [ERROR] for duplicates. Include error messages and the following diagnostic in your report. Thank you. [INFO] [ERROR] java.lang.ClassCastException: class com.sun.tools.javac.code.Symtab$6 cannot be cast to class com.sun.tools.javac.code.Symbol$ClassSymbol (com.sun.tools.javac.code.Symtab$6 and com.sun.tools.javac.code.Symbol$ClassSymbol are in module jdk.compiler of loader 'app') [INFO] [ERROR] at jdk.compiler/com.sun.tools.javac.code.Symbol.outermostClass(Symbol.java:490) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.ToolEnvironment.getFileKind(ToolEnvironment.java:196) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.isTypeElementSelected(ElementsTable.java:985) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable$IncludedVisitor.visitType(ElementsTable.java:1062) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable$IncludedVisitor.visitType(ElementsTable.java:1038) [INFO] [ERROR] at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1447) [INFO] [ERROR] at java.compiler@11.0.5 /javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.isIncluded(ElementsTable.java:334) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.DocEnvImpl.isIncluded(DocEnvImpl.java:85) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.isIncluded(Utils.java:2685) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.LinkFactoryImpl.getClassLink(LinkFactoryImpl.java:95) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.links.LinkFactory.getLink(LinkFactory.java:194) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.getLink(HtmlDocletWriter.java:679) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.seeTagToContent(HtmlDocletWriter.java:1051) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter$2.visitLink(HtmlDocletWriter.java:1454) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter$2.visitLink(HtmlDocletWriter.java:1315) [INFO] [ERROR] at jdk.compiler/com.sun.tools.javac.tree.DCTree$DCLink.accept(DCTree.java:538) [INFO] [ERROR] at jdk.compiler/com.sun.source.util.SimpleDocTreeVisitor.visit(SimpleDocTreeVisitor.java:79) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.commentTagsToContent(HtmlDocletWriter.java:1530) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addCommentTags(HtmlDocletWriter.java:1220) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addCommentTags(HtmlDocletWriter.java:1201) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addSummaryComment(HtmlDocletWriter.java:1171) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter.addIndexComment(SubWriterHolderWriter.java:135) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter.addSummaryLinkComment(SubWriterHolderWriter.java:160) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.AbstractMemberWriter.addMemberSummary(AbstractMemberWriter.java:488) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.buildSummary(MemberSummaryBuilder.java:332) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.addSummary(MemberSummaryBuilder.java:495) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.buildMethodsSummary(MemberSummaryBuilder.java:288) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder$1.build(MemberSummaryBuilder.java:112) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildMemberSummary(ClassBuilder.java:324) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:144) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.build(ClassBuilder.java:120) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:263) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:286) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:268) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:207) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.run(AbstractDoclet.java:114) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.run(StandardDoclet.java:72) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:582) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:431) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:344) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63) [INFO] [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52) [INFO] [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home/bin/javadoc -J-Duser.language= -J-Duser.country= @options @argfile [INFO] [ERROR] [INFO] [ERROR] Refer to the generated Javadoc files in '/Users/ffang/projects/cxf-release-2024dec/cxf/rt/ws/security/target/reports/apidocs' dir. Seems there is a related JDK issue https://bugs.openjdk.org/browse/JDK-8242564 which is fixed for JDK 23, but for CXF 3.6.x we need to use JDK11. I don't see this error when building CXF 3.6.4 release, so I guess this comes from that we recently bump maven-javadoc-plugin from 3.10.1 to 3.11.1, I will downgrade the maven-javadoc-plugin version and try again. Freeman On Sun, Dec 1, 2024 at 7:02 PM Freeman Fang <freeman.f...@gmail.com> wrote: > Hi Andriy, > > Sure, I will kick the release build early next week. > > Cheers > Freeman > > On Sun, Dec 1, 2024 at 4:38 PM Andriy Redko <drr...@gmail.com> wrote: > >> Hey folks! >> >> It looks like we are good to go cutting 3.5.x / 3.6.x / 4.0.x, all >> issues are resolved (or moved to later releases), and builds are green, >> thanks everyone! The 4.1.0 should hopefully follow in a week or two, >> depends >> on Spring Cloud 4.2.0, cxf-xjc-utils and cxf-build-utils releases (in a >> vote >> now). >> >> @Freeman, would you mind please to take care of cutting and sending the >> release vote for 3.5.x / 3.6.x / 4.0.x? >> >> Thank you! >> >> Best Regards, >> Andriy Redko >> >> >> > Hi Team, >> >> > Yes, I'm very glad to cut the release build when everything is ready. >> >> > Cheers >> > Freeman >> >> > On Mon, Nov 25, 2024 at 4:37 PM Andriy Redko <drr...@gmail.com> wrote: >> >> >> Hey Colm, >> >> >> For 3.5.x / 3.6.x and 4.0.x there are two pull requests I would love to >> >> get in [1], [2], would appreciate a look if possible, not trivial ones. >> >> Aside from that - we should be good to go but I need help - travelling >> this >> >> week and is not able to do much till Friday - I think Freeman was very >> kind >> >> by offering to help out with cutting the releases. >> >> For 4.1.0, we need to wait a little bit till next week for GA of one of >> >> Spring projects (Spring Cloud compatible with Spring Boot 3.4, >> scheduled >> >> for December 5th), we are milestone for now. >> >> Thanks! >> >> [1] https://github.com/apache/cxf/pull/2107 >> >> [2] https://github.com/apache/cxf/pull/2018 >> >> Best Regards, >> >> Andriy Redko >> >> On Mon, Nov 25, 2024, 4:51 a.m. Colm O hEigeartaigh < >> cohei...@apache.org> >> >> wrote: >> >>> Hey Andriy, >> >> >>> Are we close to closing out 4.1.0 or the other votes? Is there >> >>> anything that we should look into to speed things along? >> >>> Thanks, >> >>> Colm. >> >>> On Fri, Nov 15, 2024 at 3:51 PM Andriy Redko <drr...@gmail.com> >> wrote: >> >>>> Hi Freeman, >> >>>> Thanks a lot! Next week there are number of Spring related releases, >> so >> >>> we >> >>>> could plan to cut the release builds at the end of the next week. >> >>> Thanks! >> >>>> Best Regards, >> >>>> Andriy Redko >> >>>>> +1 to release in a few weeks. >> >>>>> +1 to retire 3.5.x in the new future. >> >>>>> Please let me know if you want me to cut the release build. >> >>>>> Best Regards >> >>>>> Freeman >> >>>>> On Fri, Nov 15, 2024 at 8:15 AM Andriy Redko <drr...@gmail.com> >> >>> wrote: >> >>>>>> Agree, thanks Colm for bringing this one up. I think once we get >> >>>>>> 4.1.0 out of the door, we could announce EOL for 3.5.x within the >> >>>>>> timeline you've suggested. Thanks! >> >>>>>> Best Regards, >> >>>>>> Andriy Redko >> >>>>>> Friday, November 15, 2024, 5:51:38 AM, you wrote: >> COh>>>>>>> +1, but I don't think we have ever maintained 4 different >> >>> branches >> COh>>>>>>> before. Maybe time to retire 3.5.x in the 1st half of 2025? >> COh>>>>>>> Colm. >> COh>>>>>>> On Fri, Nov 15, 2024 at 6:18 AM Francesco Chicchiriccò >> COh>>>>>>> <ilgro...@apache.org> wrote: >> >>>>>>>> On 14/11/24 22:40, Andriy Redko wrote: >> >>>>>>>>> Hey folks! >> >>>>>>>>> It's been a while since the last releases were cut. I would like >> >>> to >> >>>>>> propose >> >>>>>>>>> to have 3.5.x / 3.6.x / 4.0.x maintenance releases in the first >> >>> few >> >>>>>> weeks of >> >>>>>>>>> December. Also, I believe we should be in a good shape to cut >> >>> 4.1.0 >> >>>>>> around >> >>>>>>>>> this time as well. Any objection or suggestion folks? Thanks! >> >>>>>>>>> Best Regards, >> >>>>>>>>> Andriy Redko >> >>>>>>>> Huge +1, thanks Andriy! >> >>>>>>>> Regards. >> >>>>>>>> -- >> >>>>>>>> Francesco Chicchiriccò >> >>>>>>>> Tirasa - Open Source Excellence >> >>>>>>>> http://www.tirasa.net/ >> >>>>>>>> Member at The Apache Software Foundation >> >>>>>>>> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail >> >>>>>>>> http://home.apache.org/~ilgrosso/ >> >>