Skip to content

Commit 00f2a39

Browse files
committed
whoops off by one stack
1 parent 1e0e0b6 commit 00f2a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/jruby/RubyClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,8 +2216,8 @@ protected void extraClinitLookup(SkinnyMethodAdapter m) {
22162216

22172217
// now create proxy class
22182218
m.getstatic(javaPath, RUBY_FIELD, ci(Ruby.class));
2219-
m.getstatic(javaPath, RUBY_CLASS_FIELD, ci(RubyClass.class));
22202219
m.invokevirtual("org/jruby/Ruby", "getCurrentContext", "()Lorg/jruby/runtime/ThreadContext;");
2220+
m.getstatic(javaPath, RUBY_CLASS_FIELD, ci(RubyClass.class));
22212221
m.ldc(org.objectweb.asm.Type.getType("L" + javaPath + ";"));
22222222
// if (simpleAlloc) // if simple, don't init, if complex, do init
22232223
// m.iconst_0(); // false (as int)

0 commit comments

Comments
 (0)