Skip to content

Commit

Permalink
Fix JRUBY-6724
Browse files Browse the repository at this point in the history
NO_FILE_CLASS Profile does disables File but not FileStats that depends on File

Fix NO_FILE_CLASS profile to also disable FileStat.
  • Loading branch information
headius authored and dekellum committed Aug 3, 2012
1 parent f9b745f commit 400c73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/Profile.java
Expand Up @@ -47,7 +47,7 @@ public interface Profile {
};
Profile NO_FILE_CLASS = new Profile() {
public boolean allowBuiltin(String name) { return true; }
public boolean allowClass(String name) { return !name.equals("File"); }
public boolean allowClass(String name) { return !(name.equals("File") || name.equals("FileStat")); }
public boolean allowModule(String name) { return true; }
public boolean allowLoad(String name) { return true; }
public boolean allowRequire(String name) { return true; }
Expand Down

0 comments on commit 400c73a

Please sign in to comment.