Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-7015

JavadocFormatter throws ArrayIndexOutOfBoundsException with FunctionScoreQueryTranslatorImpl.java

    Details

    • Type: API
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: 7.2.x
    • Component/s: Core Infrastructure
    • Labels:
      None
    • Type of Documentation:
      Developer: Reference

      Description

      Here's the command and output:

      C:\git\liferay-portal>ant format-javadoc -Dlimit=FunctionScoreQueryTranslatorImpl
      Buildfile: C:\git\liferay-portal\build.xml
      [delete] Deleting: C:\git\liferay-portal\null812109559.properties

      format-javadoc:
      [java] Input directory is ./
      [java] Limit on FunctionScoreQueryTranslatorImpl
      [java] Exception in thread "main" java.lang.RuntimeException: Unable to format file ./modules/apps/portal-search-elasticsearch6/portal-search-elasticsearch6-impl/src/main/java/com/liferay/portal/search/elasticsearch6/internal/query/FunctionScoreQueryTranslatorImpl.java
      [java] at com.liferay.javadoc.formatter.JavadocFormatter.<init>(JavadocFormatter.java:215)
      [java] at com.liferay.javadoc.formatter.JavadocFormatter.main(JavadocFormatter.java:95)
      [java] Caused by: java.lang.ArrayIndexOutOfBoundsException: -2
      [java] at com.liferay.javadoc.formatter.JavadocFormatter._getIndent(JavadocFormatter.java:1406)
      [java] at com.liferay.javadoc.formatter.JavadocFormatter._addComments(JavadocFormatter.java:430)
      [java] at com.liferay.javadoc.formatter.JavadocFormatter._getUpdateJavaFromDocument(JavadocFormatter.java:1878)
      [java] at com.liferay.javadoc.formatter.JavadocFormatter._format(JavadocFormatter.java:1123)
      [java] at com.liferay.javadoc.formatter.JavadocFormatter.<init>(JavadocFormatter.java:212)
      [java] ... 1 more
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 32 seconds

       

        Attachments

          Activity

            People

            • Assignee:
              james.hinkey James Hinkey
              Reporter:
              james.hinkey James Hinkey
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                7.2.x