Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200094

Turkish locale reports NPE: No enum constant com.sun.source.doctree.DocTree.Kind.SİNCE

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      x86_64
    • OS:
      os_x
    • Verification:
      Not verified

      Description

      FULL PRODUCT VERSION :
      java version "9"
      Java(TM) SE Runtime Environment (build 9+181)
      Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Darwin Chatatata-iMac.local 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64

      A DESCRIPTION OF THE PROBLEM :
      String "since" is converted to uppercase violating enum value decomposition. On Turkish locale, the word gets converted to "SİNCE" instead of "SINCE", which is a local uppercase unicode character.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run javadoc with a computer using Turkish locale.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Javadoc generates documentation artifacts.
      ACTUAL -
      [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadocs) @ buybuddy-java-sdk ---
      [INFO]
      Loading source files for package co.buybuddy.annotation.visibility...
      Loading source files for package co.buybuddy...
      Loading source files for package co.buybuddy.networking.authentication.artifacts.concrete...
      Loading source files for package co.buybuddy.networking.authentication.artifacts.stealth...
      Loading source files for package co.buybuddy.networking.authentication...
      Loading source files for package co.buybuddy.networking.authentication.persistence...
      Loading source files for package co.buybuddy.networking.authentication.primitives...
      Loading source files for package co.buybuddy.networking.authentication.tfa...
      Loading source files for package co.buybuddy.networking...
      Loading source files for package co.buybuddy.networking.http...
      Loading source files for package co.buybuddy.networking.http.pathgen...
      Loading source files for package co.buybuddy.networking.metrics...
      Loading source files for package co.buybuddy.networking.ratelimiting...
      Loading source files for package co.buybuddy.networking.reachability...
      Loading source files for package co.buybuddy.networking.wsdl...
      Constructing Javadoc information...
      Standard Doclet version 9
      Building tree for all the packages and classes...
      Generating /Users/chatatata/Development/buy-buddy-java-sdk/target/apidocs/co/buybuddy/Context.html...
      1 error
      3 warnings
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 11.733 s
      [INFO] Finished at: 2018-03-21T18:28:51+03:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (attach-javadocs) on project buybuddy-java-sdk: MavenReportException: Error while generating Javadoc:
      [ERROR] Exit code: 1 - /Users/chatatata/Development/buy-buddy-java-sdk/src/main/java/co/buybuddy/Context.java:244: warning: no @throws for java.io.IOException
      [ERROR] public void open(Credentials credentials, ContextProcessObserver observer) throws IOException, ConcreteAuthenticationException, TwoFactorAuthenticationException {
      [ERROR] ^
      [ERROR] /Users/chatatata/Development/buy-buddy-java-sdk/src/main/java/co/buybuddy/Context.java:244: warning: no @throws for co.buybuddy.networking.authentication.artifacts.concrete.ConcreteAuthenticationException
      [ERROR] public void open(Credentials credentials, ContextProcessObserver observer) throws IOException, ConcreteAuthenticationException, TwoFactorAuthenticationException {
      [ERROR] ^
      [ERROR] /Users/chatatata/Development/buy-buddy-java-sdk/src/main/java/co/buybuddy/Context.java:244: warning: no @throws for co.buybuddy.networking.authentication.artifacts.concrete.TwoFactorAuthenticationException
      [ERROR] public void open(Credentials credentials, ContextProcessObserver observer) throws IOException, ConcreteAuthenticationException, TwoFactorAuthenticationException {
      [ERROR] ^
      [ERROR] javadoc: error - An exception occurred while building a component: ClassTagInfo
      [ERROR] (java.lang.IllegalArgumentException: No enum constant com.sun.source.doctree.DocTree.Kind.SİNCE)
      [ERROR] Please file a bug against the javadoc tool via the Java bug reporting page
      [ERROR] (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
      [ERROR] for duplicates. Include error messages and the following diagnostic in your report. Thank you.
      [ERROR] java.lang.IllegalArgumentException: No enum constant com.sun.source.doctree.DocTree.Kind.SİNCE
      [ERROR] at java.base/java.lang.Enum.valueOf(Enum.java:240)
      [ERROR] at jdk.compiler/com.sun.source.doctree.DocTree$Kind.valueOf(DocTree.java:37)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getBlockTags(Utils.java:2935)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.taglets.SimpleTaglet.getTagletOutput(SimpleTaglet.java:253)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.taglets.TagletWriter.genTagOutput(TagletWriter.java:238)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addTagsInfo(HtmlDocletWriter.java:319)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.ClassWriterImpl.addClassTagInfo(ClassWriterImpl.java:369)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildClassTagInfo(ClassBuilder.java:320)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:157)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:200)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildClassInfo(ClassBuilder.java:181)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:157)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:200)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:155)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:157)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.build(ClassBuilder.java:125)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:263)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:273)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:207)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.run(AbstractDoclet.java:117)
      [ERROR] at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.run(StandardDoclet.java:72)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:574)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:423)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:340)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
      [ERROR] at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
      [ERROR]
      [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/Users/chatatata/Development/buy-buddy-java-sdk/target/apidocs' dir.
      [ERROR]
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

        Attachments

          Activity

            People

            • Assignee:
              pmuthuswamy Priya Lakshmi Muthuswamy
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: