summaryrefslogtreecommitdiff
path: root/java/src/json/ext/Utils.java
diff options
context:
space:
mode:
authorJohn Firebaugh <john_firebaugh@us.ibm.com>2011-05-17 15:07:32 -0700
committerJohn Firebaugh <john_firebaugh@us.ibm.com>2011-05-18 11:51:09 -0700
commit1a9725371131300e3230b4b9c14e669d334f4152 (patch)
tree71351cad3478b74667a0658cc19badbe61e2ec3f /java/src/json/ext/Utils.java
parent65d259b09e1256e56f301d473a9a083315dc305d (diff)
downloadjson-1a9725371131300e3230b4b9c14e669d334f4152.tar.gz
Fix memory leak when used from multiple JRuby runtimes.
Diffstat (limited to 'java/src/json/ext/Utils.java')
-rw-r--r--java/src/json/ext/Utils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/json/ext/Utils.java b/java/src/json/ext/Utils.java
index 7a1dfee..f52ac8d 100644
--- a/java/src/json/ext/Utils.java
+++ b/java/src/json/ext/Utils.java
@@ -66,7 +66,7 @@ final class Utils {
static RaiseException newException(ThreadContext context,
String className, RubyString message) {
RuntimeInfo info = RuntimeInfo.forRuntime(context.getRuntime());
- RubyClass klazz = info.jsonModule.getClass(className);
+ RubyClass klazz = info.jsonModule.get().getClass(className);
RubyException excptn =
(RubyException)klazz.newInstance(context,
new IRubyObject[] {message}, Block.NULL_BLOCK);