Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Unassigned
Components: Core Classes/Modules
Created: 13/Jun/12 4:58 PM
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.

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
Project: JRuby
Labels: exception
Priority: Major Major
Reporter: Tsukihara Caligin
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

Reply via email to