Created
January 23, 2020 16:57
-
-
Save enebo/99d7e06b313d8e5facc8e3fb87b8e2b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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