Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2013-02-23 16:19:30 +0400
committerjfrijters <jfrijters>2013-02-23 16:19:30 +0400
commit391d7dcef01367379560eb772a6b56a645e6fbc1 (patch)
tree53432fe24f7755996b168190e8fea82a30957f95
parentd1e2edf7c3422042065fddb61564e02b7db491ae (diff)
Finish should be called inside RetargetableJavaException try block.
-rw-r--r--runtime/openjdk.cs14
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)