Strange error in classloader
----------------------------
Key: JRUBY-5887
URL: https://jira.codehaus.org/browse/JRUBY-5887
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.6.2
Environment: JRUBY in 1.9 mode
Reporter: Arturas Slajus
{noformat}
Exception in thread "RubyThread-1: main.rb:4" [ads.teis.lt 0] Gathering...
[ads.teis.lt 0] Spawning 1 threads.
java.lang.LinkageError: loader (instance of org/jruby/util/JRubyClassLoader):
attempted duplicate class definition for name: "main$block_4$RUBY$__file__"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:76)
at
org.jruby.internal.runtime.methods.InvocationMethodFactory.endClassWithBytes(InvocationMethodFactory.java:1358)
at
org.jruby.internal.runtime.methods.InvocationMethodFactory.getBlockCallback19(InvocationMethodFactory.java:899)
at
org.jruby.javasupport.util.RuntimeHelpers.createBlockCallback19(RuntimeHelpers.java:177)
at
org.jruby.javasupport.util.RuntimeHelpers.createCompiledBlockBody19(RuntimeHelpers.java:292)
at
org.jruby.javasupport.util.RuntimeHelpers.createCompiledBlockBody19(RuntimeHelpers.java:282)
at
org.jruby.ast.executable.RuntimeCache.createBlockBody19(RuntimeCache.java:442)
at
org.jruby.ast.executable.RuntimeCache.getBlockBody19(RuntimeCache.java:85)
at
org.jruby.ast.executable.AbstractScript.getBlockBody192(AbstractScript.java:108)
at main.block_3$RUBY$__file__(main.rb:39)
at main$block_3$RUBY$__file__.call(main$block_3$RUBY$__file__:65535)
at org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:154)
at org.jruby.runtime.CompiledBlock19.call(CompiledBlock19.java:82)
at org.jruby.runtime.Block.call(Block.java:89)
at org.jruby.RubyProc.call(RubyProc.java:268)
at org.jruby.RubyProc.call(RubyProc.java:232)
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:95)
at java.lang.Thread.run(Thread.java:662)
{/noformat}
--
This message is automatically generated by JIRA.
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