On 18/05/2010, Jörg Schaible <[email protected]> wrote:
> Jörg Schaible wrote:
>
>  > Hi Sebb,
>  >
>  > sebb wrote:
>
>
> [snip]
>
>
>  >> I'd like to see if there are any further problems before proceeding
>  >> with another RC.
>  >
>  > Fine with me, I have some more pets in my compiler zoo ... ;-)
>
>
> There's more ...
>
>  IBM 1.6.0.8:
>  ================ %< =======================
>
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
>  Java version: 1.6.0
>
> Java home: /opt/ibm-jdk-bin-1.6.0.8/jre
>
> Default locale: en_US, platform encoding: UTF-8
>
> OS name: "linux" version: "2.6.32-gentoo-r7" arch: "x86" Family: "unix"
>
>  Running org.apache.bsf.testing.javascript.RubyTestcase
>  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.258 sec
>  <<< FAILURE!
>  junit.framework.AssertionFailedError: Engine should not be null
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at junit.framework.Assert.assertNotNull(Assert.java:217)
>         at
>  
> org.apache.bsf.testing.javascript.RubyTestcase.testInvokeFunction(RubyTestcase.java:41)

Don't know about that one.

>  ================ %< =======================
>
>  Sun JDK 1.7.0-ea (looks more like an incompatibility of ancient Groovy 1.1
>  with this JDK):
>  ================ %< =======================
>
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
>
> Java version: 1.7.0-ea
>  Java home: /opt/sun-jdk-1.7.0.0_alpha69/jre
>
> Default locale: en_US, platform encoding: UTF-8
>  OS name: "linux" version: "2.6.32-gentoo-r7" arch: "i386" Family: "unix"
>
>
> Running org.apache.bsf.testing.groovy.GroovyTestcase
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.155 sec
>  <<< FAILURE!
>  java.lang.NoClassDefFoundError: org/mozilla/javascript/ContextFactory
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at sun.misc.Service$LazyIterator.next(Service.java:288)
>         at
>  javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:127)
>         at 
> javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:55)
>         at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:98)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:96)
>         at javax.script.ScriptEngineManager.&lt;init&gt;
>  (ScriptEngineManager.java:69)
>         at
>  
> org.apache.bsf.testing.groovy.GroovyTestcase.testInvokeFunction(GroovyTestcase.java:34)
>  Caused by: java.lang.ClassNotFoundException:
>  org.mozilla.javascript.ContextFactory
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:392)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:334)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:332)
>         ... 36 more

That's probably because I've not allowed for Java 1.7.
Need to duplicate the fixes for Java 1.6.

However, Java 1.6+ have their own JSR-223 implementation, so there's
less need for BSF there.

>  ================ %< =======================
>
>  JRockit 1.5.0.14 (pathetic version, just for info):
>  ================ %< =======================
>
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
>
> Java version: 1.5.0_14
>  Java home: /opt/jrockit-jdk-bin-1.5.0.14/jre
>
> Default locale: en_US, platform encoding: UTF-8
>  OS name: "linux" version: "2.6.32-gentoo-r7" arch: "i386" Family: "unix"
>
> Running org.apache.bsf.testing.javascript.RubyTestcase
>  [JRockit] ERROR: The JVM has crashed. Writing crash information to
>  /home/joehni/tmp/download/bsf-3.1-src/testing/ruby/jrockit.12652.dump.

That's a JVM bug.

>  ================ %< =======================
>
>  However, it did build fine with Sun JDK 1.6, Sun JDK 1.5 and IcedTea6 1.7.2.
>
>  Since M2.2 requires Java 5, I tried to build for JDK 1.4 (according BUILDING
>  file JDK 1.4 is minimum) with M2.0, but this is not possible, because the
>  plugins in use have a requirement for M2.1.
>  The build with Sun JDK 1.4 and
>  M2.1 fails also, because another plugin uses Java 5. So *building* BSF
>  requires 1.5.

Builds fine for me:

Apache Maven 2.1.0 (r755702; 2009-03-18 19:10:27+0000)
Java version: 1.4.2_19

I also added the java-1.4/5/6 profiles which allow cross-compilation/testing.

However, I forgot to update the BUILDING file.

>  However, I am able to run the tests for the engines (after building with Sun
>  JDK 1.6) with Maven 2.1 and Blackdown 1.4.2, Sun JDK 1.4.2, JRockit 1.4. So
>  compatibility with JDK 1.4 looks good.
>
>  IBM JDK 1.5 and 1.4 fail as usual with Maven itself.
>
>
>  - Jörg
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [email protected]
>  For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to