Error in surefire booter 1.5.2
------------------------------

         Key: MSUREFIRE-86
         URL: http://jira.codehaus.org/browse/MSUREFIRE-86
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.1.2    
 Environment: Win XP / java sun  1.5.0_06.
    Reporter: David J. M. Karlsen


When using the forkMode option, and setting JVM to a:
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT 
enabled: jitc))
which does not implement the java.lang.String.split method which was introduced 
in java 1.4, the test will fail with the error message "There are some test 
failure" because the fork fails:

Exception in thread "main" java.lang.NoSuchMethodError: java.lang.String: 
method split(Ljava/lang/String;)[Ljava/lang/St
ring; not found
        at 
org.apache.maven.surefire.SurefireBooter.createForkingClassLoader(SurefireBooter.java:264)
        at 
org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:628)

Configuration:

<forkMode>pertest</forkMode>
<jvm>C:\Program Files\IBM\WebSphere Studio\Application 
Developer\v5.1.2\runtimes\base_v5\java\jre\bin\java</jvm>

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

Reply via email to