![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0.RC2 |
Assignee:
|
Thomas E Enebo
|
Created:
|
19/Oct/12 1:00 PM
|
Description:
|
Test code:
— begin test.rb —
class Foo
def initialize![]()
@value = x
end
def to_s
@value.to_s
end
def <=>(other)
return @startdate <=> other.startdate
end
end
x = Foo.new(5)
puts x
— end test.rb —
Output:
$ jruby test.rb
ClassLoader.java:286:in `defineClass': java.lang.NoClassDefFoundError: test$method__3$RUBY$\=^=_
from JRubyClassLoader.java:82:in `defineClass'
from InvocationMethodFactory.java:1384:in `endClassWithBytes'
from InvocationMethodFactory.java:1368:in `endCallWithBytes'
from InvocationMethodFactory.java:269:in `getCompiledMethod'
from RuntimeHelpers.java:1959:in `constructNormalMethod'
from RuntimeHelpers.java:336:in `def'
from test.rb:13:in `class_0$RUBY$Foo'
from test.rb:4:in `_file_'
from test.rb:-1:in `load'
from Ruby.java:770:in `runScript'
from Ruby.java:763:in `runScript'
from Ruby.java:640:in `runNormally'
from Ruby.java:489:in `runFromMain'
from Main.java:375:in `doRunFromMain'
from Main.java:264:in `internalRun'
from Main.java:230:in `run'
from Main.java:214:in `run'
from Main.java:194:in `main'
$ java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr2-20120901_01(SR2))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 20120809_118929 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR2_20120809_0948_B118929
JIT - r11.b01_20120808_24925
GC - R26_Java726_SR2_20120809_0948_B118929
J9CL - 20120809_118929)
JCL - 20120831_02 based on Oracle 7u3-b05
$ jruby -v
jruby 1.7.0.RC2 (1.9.3p203) 2012-10-09 142cc7b on IBM J9 VM pxa6470sr2-20120901_01 (SR2) [linux-amd64]
|
Environment:
|
RHEL 6.3, IBM JDK 1.7.0
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
mathew murphy
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email