maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Schutte (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MJAVADOC-135) Error parsing javadoc version when used with IBM jdk 1.4.2
Date Wed, 22 Aug 2007 13:17:47 GMT

    [ http://jira.codehaus.org/browse/MJAVADOC-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105433
] 

Marcel Schutte commented on MJAVADOC-135:
-----------------------------------------

The following output shows why the AbstractJavadocMojo.getJavadocVersion() method fails:

c:\>jvm sun14
c:\>javadoc -J-fullversion
java full version "1.4.2_12-b03"

c:\>jvm ibm14
c:\>javadoc -J-fullversion
javadoc full version "J2RE 1.4.2 IBM Windows 32 build cn1420-20040626"

Calling version.substring( 0, 3 ) on the latter will produce J2R and the subsequent NumberFormatException.

> Error parsing javadoc version when used with IBM jdk 1.4.2
> ----------------------------------------------------------
>
>                 Key: MJAVADOC-135
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-135
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: IBM JDK 1.4.2
>            Reporter: Manuel Santillán
>
> Error parsing javadocVersion in plugin 2.3 when using IBM JDK. Plugin works fine in version
2.2.
> java.lang.NumberFormatException: For input string: "J2R"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:63)
> 	at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1230)
> 	at java.lang.Float.parseFloat(Float.java:246)
> 	at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getJavadocVersion(AbstractJavadocMojo.java:2966)
> 	at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1085)
> 	at org.apache.maven.plugin.javadoc.JavadocJar.execute(JavadocJar.java:108)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> 	at java.lang.reflect.Method.invoke(Method.java:391)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18 seconds
> [INFO] Finished at: Mon Jul 23 10:57:16 CEST 2007
> [INFO] Final Memory: 12M/512M
> [INFO] ------------------------------------------------------------------------

-- 
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

       

Mime
View raw message