diff options
author | jfrijters <jfrijters> | 2013-02-23 16:19:30 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2013-02-23 16:19:30 +0400 |
commit | 391d7dcef01367379560eb772a6b56a645e6fbc1 (patch) | |
tree | 53432fe24f7755996b168190e8fea82a30957f95 | |
parent | d1e2edf7c3422042065fddb61564e02b7db491ae (diff) |
Finish should be called inside RetargetableJavaException try block.
-rw-r--r-- | runtime/openjdk.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/openjdk.cs b/runtime/openjdk.cs index 6d8b7508..6f323033 100644 --- a/runtime/openjdk.cs +++ b/runtime/openjdk.cs @@ -2587,15 +2587,15 @@ namespace IKVM.NativeCode.java public static object[] getEnclosingMethod0(jlClass thisClass) { - TypeWrapper tw = TypeWrapper.FromClass(thisClass); - tw.Finish(); - string[] enc = tw.GetEnclosingMethod(); - if (enc == null) - { - return null; - } try { + TypeWrapper tw = TypeWrapper.FromClass(thisClass); + tw.Finish(); + string[] enc = tw.GetEnclosingMethod(); + if (enc == null) + { + return null; + } return new object[] { tw.GetClassLoader().LoadClassByDottedName(enc[0]).ClassObject, enc[1], enc[2] == null ? null : enc[2].Replace('.', '/') }; } catch (RetargetableJavaException x) |