# HG changeset patch # User Tom Rodriguez # Date 1426813388 25200 # Node ID a5ee3e32dc6238ae7e89e57c58ed86d1654d3b24 # Parent 8964b0b777b7b088ab874974ed953767139f2fbb Don't let NoClassDefFoundError leak when reflectively looking up Method diff -r 8964b0b777b7 -r a5ee3e32dc62 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethodImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethodImpl.java Thu Mar 19 17:48:48 2015 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaMethodImpl.java Thu Mar 19 18:03:08 2015 -0700 @@ -526,7 +526,7 @@ Method result = holder.mirror().getDeclaredMethod(name, signatureToTypes()); toJavaCache = result; return result; - } catch (NoSuchMethodException e) { + } catch (NoSuchMethodException | NoClassDefFoundError e) { return null; } } @@ -539,7 +539,7 @@ Constructor result = holder.mirror().getDeclaredConstructor(signatureToTypes()); toJavaCache = result; return result; - } catch (NoSuchMethodException e) { + } catch (NoSuchMethodException | NoClassDefFoundError e) { return null; } }