[m1.1-RC1 Oct06] maven-xdoc-plugin-1.10.1-SNAPSHOT fails under JDK 6 --------------------------------------------------------------------
Key: MPXDOC-200 URL: http://jira.codehaus.org/browse/MPXDOC-200 Project: maven-xdoc-plugin Issue Type: Bug Environment: java version "1.6.0-beta2" Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86) Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing) Win 2K Maven 1.1 RC 1 from Oct 2006 Reporter: Benoit Xhenseval Priority: Critical Fix For: 1.10.1 Hi Issue discussed on http://www.nabble.com/-m1.1-rc1--javadoc-does-not-generate-anything...-tf2220969.html Here is the log: xdoc:init: [echo] Generates the directory structure required for xdocs xdoc:i18n-validation: [echo] Validation of the locale entries BUILD FAILED File...... file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/plugin.jelly Element... j:arg Line...... 666 Column.... 70 [Ljava.lang.Object; Total time : 1 minutes 9 seconds Finished at : 12 October 2006 13:54:00 BST --------------- I though that the issue may be related to generics and calling this invokeStatic on java.util.Arrays but this seems to work when I try at home with JDK 1.5.08 however, I'm having trouble with JDK 6-b2 May be the interface has changed or one cannot use the following jelly code: <j:invokeStatic method="getAvailableLocales" className="java.util.Locale" var="availableLocales"/> <j:invokeStatic className="java.util.Arrays" method="asList" var="availableLocalesAsList"> <j:arg value="${availableLocales}" type="[Ljava.lang.Object;"/> </j:invokeStatic> I have checked the API for JDK6 and it seems to be the same... A simple maven site or maven multiproject:site under JDK 6 should confirm the issue, works fine under 1.5 Definitely something around this "asList" call... Benoit -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira