summaryrefslogtreecommitdiff
path: root/ext/java/PsychParser.java
diff options
context:
space:
mode:
Diffstat (limited to 'ext/java/PsychParser.java')
-rw-r--r--ext/java/PsychParser.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/java/PsychParser.java b/ext/java/PsychParser.java
index ec00501..b6868f9 100644
--- a/ext/java/PsychParser.java
+++ b/ext/java/PsychParser.java
@@ -241,9 +241,10 @@ public class PsychParser extends RubyObject {
private void handleDocumentStart(ThreadContext context, DocumentStartEvent dse, boolean tainted, IRubyObject handler) {
Ruby runtime = context.runtime;
DumperOptions.Version _version = dse.getVersion();
- IRubyObject version = _version == null ?
+ Integer[] versionInts = _version == null ? null : _version.getArray();
+ IRubyObject version = versionInts == null ?
RubyArray.newArray(runtime) :
- RubyArray.newArray(runtime, runtime.newFixnum(_version.major()), runtime.newFixnum(_version.minor()));
+ RubyArray.newArray(runtime, runtime.newFixnum(versionInts[0]), runtime.newFixnum(versionInts[1]));
Map<String, String> tagsMap = dse.getTags();
RubyArray tags = RubyArray.newArray(runtime);