Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Core Classes/Modules
-
Labels:
-
Environment:linux BackTrack 5 R1 x86, JVM oracle 1.7.0_03, building a project including jruby-1.7.0.preview1 on Apache Maven 3.0.4 as compile-scope dependency
-
Number of attachments :
Description
instantiating a org.jruby.embed.jsr223.JRubyEngine using the constructor "JRubyEngine(ScriptingContainer container, JRubyEngineFactory factory)",
when a org.jruby.embed.ScriptingContainer configured with a Profile.NO_FILE_CLASS causes the org.jruby.Ruby initCore() method to skip the creation of RubyFile class at line 1380, but it does not prevent the creation of RubyFileStat class at line 1383, resulting in a NPE on statement "..= runtime.getFile().defineClassUnder( .." in org.jruby.RubyFileStat, line 75.
Don't know enough the library to say it for sure, but the problem may be the condition "public boolean allowClass(String name)
{ return !name.equals("File"); }" in org.jruby.Profile line 50.
Good find!