JRuby

Can not execute JRuby 1.1.1 "ant test" with IBM JDK

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.1
  • Fix Version/s: JRuby 1.2
  • Component/s: IBM/Other VM
  • Labels:
    None
  • Environment:
  • Number of attachments :
    0

Description

"ant test" has been defunct since release 1.1 for IBM JDK 5.0 or above.

Buildfile: build.xml

init:

jar:

jar-jruby:

init:

extract-rdocs:

prepare:

compile-tasks:
[copy] Copying 1 file to /home/sma/jruby-1.1.1/build/classes/jruby

compile-annotation-binder:

check-for-optional-java4-packages:

check-for-optional-packages:

compile-jruby:

compile:

generate-method-classes:
[echo] Generating invokers...
[echo] Compiling populators...
[jarjar] Building jar: /home/sma/jruby-1.1.1/lib/jruby.jar

compile-test:

copy-test-files:

instrument:

run-junit-compiled:
[echo] compile=JIT, jit.threshold=0, jit.max=-1, objectspace=true threadpool=false reflection=false version=ruby1_8
[junit] Testsuite: org.jruby.test.MainTestSuite
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit]
[junit] Null Test: Caused an ERROR
[junit] (org/jruby/test/MainTestSuite) bad major version at offset=6
[junit] java.lang.UnsupportedClassVersionError: (org/jruby/test/MainTestSuite) bad major version at offset=6
[junit] at java.lang.ClassLoader.defineClassImpl(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:258)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:589)
[junit] at java.net.URLClassLoader.access$400(URLClassLoader.java:123)
[junit] at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1034)
[junit] at java.security.AccessController.doPrivileged(AccessController.java:279)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:491)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:328)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
[junit] at java.lang.Class.forNameImpl(Native Method)
[junit] at java.lang.Class.forName(Class.java:130)
[junit]
[junit]

BUILD FAILED
/home/sma/jruby-1.1.1/build.xml:465: The following error occurred while executing this line:
/home/sma/jruby-1.1.1/build.xml:546: The following error occurred while executing this line:
/home/sma/jruby-1.1.1/build.xml:505: Tests failed

Total time: 19 seconds

Activity

Hide
Charles Oliver Nutter added a comment -

I finally went downloaded IBM Java 5 and it did indeed have different failures/issues than Java 6. But I worked through all of them and we now have IBM Java 5 running on the CI machine. So this should be golden, and 1.1.7 should support IBM Java 5 out of the box.

Show
Charles Oliver Nutter added a comment - I finally went downloaded IBM Java 5 and it did indeed have different failures/issues than Java 6. But I worked through all of them and we now have IBM Java 5 running on the CI machine. So this should be golden, and 1.1.7 should support IBM Java 5 out of the box.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: