ObjectSpace#each_object blows NPE when JRuby is run via bootclasspath
---------------------------------------------------------------------
Key: JRUBY-3028
URL: http://jira.codehaus.org/browse/JRUBY-3028
Project: JRuby
Issue Type: Bug
Reporter: Marcin Mielzynski
Assignee: Thomas E Enebo
Priority: Minor
ObjectSpace#each_object blows NPE when JRuby is run via bootclasspath
java -Djruby.objectspace.enabled=true -jar lib/jruby.jar -e
"ObjectSpace.each_object{}"
or
java -Djruby.objectspace.enabled=true -cp lib/jruby.jar org.jruby.Main -e
"ObjectSpace.each_object{}"
is ok, but:
java -Djruby.objectspace.enabled=true -Xbootclasspath/a:lib/jruby.jar
org.jruby.Main -e "ObjectSpace.each_object{}"
org.jruby.RubyModule$KindOf:163:in `isKindOf': java.lang.NullPointerException
from org.jruby.RubyModule:168:in `isInstance'
from org.jruby.runtime.ObjectSpace:119:in `iterator'
from org.jruby.RubyObjectSpace:125:in `each_object'
from
org.jruby.RubyObjectSpace$s_method_0_1$RUBYFRAMEDINVOKER$each_object:-1:in
`call'
from org.jruby.internal.runtime.methods.DynamicMethod:225:in `call'
from org.jruby.runtime.callsite.CachingCallSite:266:in `cacheAndCall'
from org.jruby.runtime.callsite.CachingCallSite:100:in `callIter'
from ruby.__dash_e__:1:in `__file__'
from ruby.__dash_e__:-1:in `__file__'
from ruby.__dash_e__:-1:in `load'
from org.jruby.Ruby:554:in `runScript'
from org.jruby.Ruby:467:in `runNormally'
from org.jruby.Ruby:340:in `runFromMain'
from org.jruby.Main:214:in `run'
from org.jruby.Main:100:in `run'
from org.jruby.Main:84:in `main'
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email