8164012: com/sun/jdi/CatchPatternTest.sh fails on jdk9/hs with Required output "Exception occurred: java.lang.IllegalMonitorStateException" not found
Summary: Change test so that irrelevant exceptions do not interfere
Reviewed-by: dholmes, dsamersoff
--- a/jdk/test/com/sun/jdi/CatchPatternTest.sh Mon Aug 15 15:35:27 2016 -0400
+++ b/jdk/test/com/sun/jdi/CatchPatternTest.sh Tue Aug 16 09:57:50 2016 +0200
@@ -87,7 +87,12 @@
cmd stop in ${classname}.partTwo
runToBkpt
cmd ignore uncaught java.lang.Throwable
- cmd catch all java.lang.I*
+ # Instead of matching java.lang.I* we use two more specific
+ # patterns here. The reason is to avoid matching IncompatibleClassChangeError
+ # (or the subclass NoSuchMethodError) thrown by the
+ # java.lang.invoke infrastructure.
+ cmd catch all java.lang.Il*
+ cmd catch all java.lang.Ind*
cmd cont
cmd cont
cmd cont