Skip to content

Instantly share code, notes, and snippets.

@enebo
Created January 23, 2020 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enebo/99d7e06b313d8e5facc8e3fb87b8e2b7 to your computer and use it in GitHub Desktop.
Save enebo/99d7e06b313d8e5facc8e3fb87b8e2b7 to your computer and use it in GitHub Desktop.
diff --git a/core/src/main/java/org/jruby/ir/targets/JVMVisitor.java b/core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
index a00a77e164..74d65ab3fc 100644
--- a/core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
+++ b/core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
@@ -100,13 +100,13 @@ public class JVMVisitor extends IRVisitor {
lastLine = -1;
Class result = jrubyClassLoader.defineClass(c(JVM.scriptToClass(file)), code);
- for (Map.Entry<String, StaticScope> entry : staticScopeMap.entrySet()) {
- try {
- result.getField(entry.getKey()).set(null, entry.getValue());
- } catch (Exception e) {
- throw new NotCompilableException(e);
- }
- }
+// for (Map.Entry<String, StaticScope> entry : staticScopeMap.entrySet()) {
+// try {
+// result.getField(entry.getKey()).set(null, entry.getValue());
+// } catch (Exception e) {
+// throw new NotCompilableException(e);
+// }
+// }
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment