Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3325

[JDK8] build failed with JDK 8 with error: package org.apache.hadoop.yarn.util has already been annotated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • None
    • build

    Description

      [ERROR] /root/bigtop/build/hadoop/rpm/BUILD/hadoop-2.6.0-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/package-info.java:18: error: package org.apache.hadoop.yarn.util has already been annotated
      [ERROR] @InterfaceAudience.Public
      [ERROR] ^
      [ERROR] java.lang.AssertionError
      [ERROR] at com.sun.tools.javac.util.Assert.error(Assert.java:126)
      [ERROR] at com.sun.tools.javac.util.Assert.check(Assert.java:45)
      [ERROR] at com.sun.tools.javac.code.SymbolMetadata.setDeclarationAttributesWithCompletion(SymbolMetadata.java:161)
      [ERROR] at com.sun.tools.javac.code.Symbol.setDeclarationAttributesWithCompletion(Symbol.java:215)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.actualEnterAnnotations(MemberEnter.java:952)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.access$600(MemberEnter.java:64)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter$5.run(MemberEnter.java:876)
      [ERROR] at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:143)
      [ERROR] at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:129)
      [ERROR] at com.sun.tools.javac.comp.Enter.complete(Enter.java:512)
      [ERROR] at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
      [ERROR] at com.sun.tools.javadoc.JavadocEnter.main(JavadocEnter.java:78)
      [ERROR] at com.sun.tools.javadoc.JavadocTool.getRootDocImpl(JavadocTool.java:186)
      [ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:346)
      [ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:219)
      [ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:205)
      [ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:64)
      [ERROR] at com.sun.tools.javadoc.Main.main(Main.java:54)
      [ERROR] javadoc: error - fatal error

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zb161 zhubin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: