summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/java/org/jruby/ext/psych/PsychParser.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/java/org/jruby/ext/psych/PsychParser.java b/ext/java/org/jruby/ext/psych/PsychParser.java
index b660a0f..7672cd2 100644
--- a/ext/java/org/jruby/ext/psych/PsychParser.java
+++ b/ext/java/org/jruby/ext/psych/PsychParser.java
@@ -89,8 +89,7 @@ public class PsychParser extends RubyObject {
}
}, psych);
- RubyKernel.require(runtime.getNil(),
- runtime.newString("psych/syntax_error"), Block.NULL_BLOCK);
+ runtime.getLoadService().require("psych/syntax_error");
psychParser.defineConstant("ANY", runtime.newFixnum(YAML_ANY_ENCODING.ordinal()));
psychParser.defineConstant("UTF8", runtime.newFixnum(YAML_UTF8_ENCODING.ordinal()));
psychParser.defineConstant("UTF16LE", runtime.newFixnum(YAML_UTF16LE_ENCODING.ordinal()));