Guest User

Untitled

a guest
May 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. diff --git a/src/org/jruby/java/MiniJava.java b/src/org/jruby/java/MiniJava.java
  2. index 15c43ab..8d65b21 100644
  3. --- a/src/org/jruby/java/MiniJava.java
  4. +++ b/src/org/jruby/java/MiniJava.java
  5. @@ -424,10 +424,12 @@ public class MiniJava implements Library {
  6. } else {
  7. Label dispatch = new Label();
  8. Label end = new Label();
  9. + Label line;
  10.  
  11. // Try to look up field for simple name
  12.  
  13. // lock self
  14. + line = new Label(); mv.visitLineNumber(1, line); mv.label(line);
  15. mv.getstatic(name, "rubyClass", ci(RubyClass.class));
  16. mv.monitorenter();
  17.  
  18. @@ -455,6 +457,7 @@ public class MiniJava implements Library {
  19. mv.pop();
  20. // exit monitor before making call
  21. // FIXME: this not being in a finally is a little worrisome
  22. + line = new Label(); mv.visitLineNumber(1, line); mv.label(line);
  23. mv.getstatic(name, "rubyClass", ci(RubyClass.class));
  24. mv.monitorexit();
  25. mv.aload(0);
  26. @@ -468,7 +471,8 @@ public class MiniJava implements Library {
  27. mv.label(dispatch);
  28. mv.dup();
  29. mv.putstatic(name, simpleName, ci(DynamicMethod.class));
  30. -
  31. +
  32. + line = new Label(); mv.visitLineNumber(1, line); mv.label(line);
  33. mv.getstatic(name, "rubyClass", ci(RubyClass.class));
  34. mv.monitorexit();
  35.  
  36. @@ -493,7 +497,7 @@ public class MiniJava implements Library {
  37.  
  38. mv.label(end);
  39. coerceResultAndReturn(method, mv, returnType);
  40. - }
  41. + }
  42. mv.end();
  43. }
  44. }
Add Comment
Please, Sign In to add comment