-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
Blue Ocean 1.5 - beta 1
When you try to generate the javadocs for BlueOcean with Java 8 the build fails with:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:javadoc (default-cli) on project blueocean-commons: An error has occurred in JavaDocs report generation: [ERROR] Exit code: 1 - /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/Model.java:195: warning: '_' used as an identifier [ERROR] } catch (AbstractMethodError _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/Property.java:416: warning: '_' used as an identifier [ERROR] } catch (AbstractMethodError _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/ServiceException.java:43: warning: no @return [ERROR] public String toJson(){ [ERROR] ^ [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/ExportInterceptor.java:38: error: reference not found [ERROR] * @see Exported#skipNull() [ERROR] ^ [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/ExportInterceptor.java:40: warning: no @param for config [ERROR] public abstract Object getValue(Property property, Object model, ExportConfig config) throws IOException; [ERROR] ^ [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/TypeUtil.java:85: warning: '_' used as an identifier [ERROR] public Class onClass(Class c,Void _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/TypeUtil.java:89: warning: '_' used as an identifier [ERROR] public Class onParameterizdType(ParameterizedType p,Void _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/TypeUtil.java:94: warning: '_' used as an identifier [ERROR] public Class onGenericArray(GenericArrayType g,Void _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/TypeUtil.java:100: warning: '_' used as an identifier [ERROR] public Class onVariable(TypeVariable v,Void _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] /home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/export/TypeUtil.java:104: warning: '_' used as an identifier [ERROR] public Class onWildcard(WildcardType w,Void _) { [ERROR] ^ [ERROR] (use of '_' as an identifier might not be supported in releases after Java SE 8) [ERROR] [ERROR] Command line was: /home/raul/dev-tools/jdk1.8.0_91/jre/../bin/javadoc @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/home/raul/Workspace/Java/blueocean-plugin/blueocean-commons/target/site/apidocs' dir. [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]
This is a consequence of the more strict javadoc constraints applied by Java 8, it does not impact the code itself but as a consequence any build that is no explicitly skiping the javadoc step is going to failĀ
To reproduce
- CheckoutĀ BlueOcean master
- run mvn javadoc:javadoc
- links to