JavaObject.st
changeset 3083 ccde6af7278c
parent 3075 76a10700c053
child 3179 d7978de50434
--- a/JavaObject.st	Wed Apr 16 18:27:24 2014 +0200
+++ b/JavaObject.st	Wed Apr 16 18:53:52 2014 +0200
@@ -326,11 +326,19 @@
     attrs := super inspectorExtraAttributes.
     nm := self class binaryName.
     nm == #'java/lang/reflect/Method' ifTrue:[
-        attrs at:'-method' put: (JavaVM reflection methodForJavaMethodObject: self).
+        VMInternalError handle:[:ex |
+            "/ happens when the method cannot be resolved
+        ] do:[
+            attrs at:'-method' put: (JavaVM reflection methodForJavaMethodObject: self).
+        ].
         ^attrs.
     ].
     nm == #'java/lang/Class' ifTrue:[
-        attrs at:'-class' put: (JavaVM reflection classForJavaClassObject: self).
+        VMInternalError handle:[:ex |
+            "/ happens when the class cannot be resolved
+        ] do:[
+            attrs at:'-class' put: (JavaVM reflection classForJavaClassObject: self).
+        ].
         ^attrs.
     ].
     ^attrs