Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9227174E0 for ; Sat, 27 Sep 2014 21:18:33 +0000 (UTC) Received: (qmail 78294 invoked by uid 500); 27 Sep 2014 21:18:33 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 78263 invoked by uid 500); 27 Sep 2014 21:18:33 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 78253 invoked by uid 99); 27 Sep 2014 21:18:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2014 21:18:33 +0000 Date: Sat, 27 Sep 2014 21:18:33 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-3359) `sbt/sbt unidoc` doesn't work with Java 8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-3359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14150778#comment-14150778 ] Sean Owen commented on SPARK-3359: ---------------------------------- Yeah I noticed this. The problem is that {{sbt-unidoc}} uses {{genjavadoc}}, and it looks like it generates invalid Java like the snippet you quote (top-level classes can't be private). That's almost all of the extra warnings. It seems to have been fixed in {{genjavadoc}} 0.8: https://github.com/typesafehub/genjavadoc/blob/v0.8/plugin/src/main/scala/com/typesafe/genjavadoc/AST.scala#L107 I can see how to update the plugin in the Maven build, but not yet in the SBT build. If someone who gets SBT can explain how to set {{unidocGenjavadocVersion}} to "0.8" in the {{genjavadocSettings}} that is inherited in {{project/SparkBuild.scala}}, I bet that would fix it. https://github.com/sbt/sbt-unidoc/blob/master/src/main/scala/sbtunidoc/Plugin.scala#L22 > `sbt/sbt unidoc` doesn't work with Java 8 > ----------------------------------------- > > Key: SPARK-3359 > URL: https://issues.apache.org/jira/browse/SPARK-3359 > Project: Spark > Issue Type: Bug > Components: Documentation > Affects Versions: 1.1.0 > Reporter: Xiangrui Meng > Priority: Minor > > It seems that Java 8 is stricter on JavaDoc. I got many error messages like > {code} > [error] /Users/meng/src/spark-mengxr/core/target/java/org/apache/hadoop/mapred/SparkHadoopMapRedUtil.java:2: error: modifier private not allowed here > [error] private abstract interface SparkHadoopMapRedUtil { > [error] ^ > {code} > This is minor because we can always use Java 6/7 to generate the doc. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org