com/sun/jdi/CatchPatternTest.sh fails for the jdk9/hs snapshot with Exception occurred: java.lang.NoSuchMethodError. This has to be fixed or the test excluded (in jdk9/dev) before the snapshot is pushed to jdk9/dev
Exception occurred: java.lang.IllegalArgumentException (to be caught at: CatchPatternTestTarg.loop(), line=21 bci=15)"thread=main", CatchPatternTestTarg.bark(), line=6 bci=53
6 throw new IllegalArgumentException("IllegalArgumentException");
main[1] >
Exception occurred: java.lang.NoSuchMethodError (to be caught at: java.lang.invoke.MemberName$Factory.resolve(), line=1,045 bci=56)"thread=main", java.lang.invoke.MethodHandleNatives.resolve(), line=-1 bci=-1
main[1] >
Exception occurred: java.lang.NoSuchMethodError (to be caught at: java.lang.invoke.MemberName$Factory.resolve(), line=1,045 bci=56)"thread=main", java.lang.invoke.MethodHandleNatives.resolve(), line=-1 bci=-1
main[1] Removed: all java.lang.I*
main[1] > loop: IllegalArgumentException caught and ignored.
bark: 1
loop: ArithmeticException caught and ignored.
bark: 2
loop: IllegalMonitorStateException caught and ignored.
partOne completed
Breakpoint hit: "thread=main", CatchPatternTestTarg.partTwo(), line=32 bci=0
32 loop(3);
main[1] bark: 0
loop: IllegalArgumentException caught and ignored.
bark: 1
loop: ArithmeticException caught and ignored.
bark: 2
loop: IllegalMonitorStateException caught and ignored.
bark: 3
loop: IndexOutOfBoundsException caught and ignored.
partTwo completed
Goodbye from CatchPatternTestTarg!
STDERR:
ShellScaffold.sh: Running with timeout_factor = 4
--Sending cmd: stop in CatchPatternTestTarg.main
--Sending cmd: stop in CatchPatternTestTarg.partTwo
--Sending cmd: run
java version "9-internal"
Java(TM) SE Runtime Environment (build 9-internal+0-2016-08-12-210054.amurillo.jdk9-hs-2016-08-12-jdk9-dev-control)
Java HotSpot(TM) Server VM (build 9-internal+0-2016-08-12-210054.amurillo.jdk9-hs-2016-08-12-jdk9-dev-control, mixed mode)
--Sending cmd: ignore uncaught java.lang.Throwable
--Sending cmd: catch all java.lang.I*
--Sending cmd: cont
--Sending cmd: cont
--Sending cmd: cont
--Sending cmd: ignore all java.lang.I*
--Sending cmd: cont
--Finish execution with sending "quit" command to JDB
--Sending cmd: quit
--Quit cmd was sent
--waitForFinish: Waiting for all processes to finish
-rw-rw-r-- 1 jprtadm jprtadm 2116 Aug 12 18:49 /scratch/opt/jprt/T/P1/210054.amurillo/s/jdk/testoutput/jdk_jdi/JTwork/classes/com/sun/jdi/aa12140/testFailed
<cleanup:_begin_failFile_contents>
--Fail: main: Required output "Exception occurred: java.lang.IllegalMonitorStateException" not found in /scratch/opt/jprt/T/P1/210054.amurillo/s/jdk/testoutput/jdk_jdi/JTwork/classes/com/sun/jdi/aa12140/jxdbOutput.txt /scratch/opt/jprt/T/P1/210054.amurillo/s/jdk/testoutput/jdk_jdi/JTwork/classes/com/sun/jdi/aa12140/jxdbOutput.txt
---- contents of /scratch/opt/jprt/T/P1/210054.amurillo/s/jdk/testoutput/jdk_jdi/JTwork/classes/com/sun/jdi/aa12140/jxdbOutput.txt follows -------
Listening at address:
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
>
VM Started: No frames on the current call stack
main[1] Deferring breakpoint CatchPatternTestTarg.main.
It will be set after the class is loaded.
main[1] Deferring breakpoint CatchPatternTestTarg.partTwo.
It will be set after the class is loaded.
main[1] > Set deferred breakpoint CatchPatternTestTarg.partTwo
Set deferred breakpoint CatchPatternTestTarg.main
Breakpoint hit: "thread=main", CatchPatternTestTarg.main(), line=36 bci=0
36 System.out.println("Howdy!");
main[1] Removed: uncaught java.lang.Throwable
main[1] Deferring all java.lang.I*.
It will be set after the class is loaded.
main[1] >
Exception occurred: java.lang.IllegalArgumentException (to be caught at: CatchPatternTestTarg.loop(), line=21 bci=15)"thread=main", CatchPatternTestTarg.bark(), line=6 bci=53
6 throw new IllegalArgumentException("IllegalArgumentException");
main[1] >
Exception occurred: java.lang.NoSuchMethodError (to be caught at: java.lang.invoke.MemberName$Factory.resolve(), line=1,045 bci=56)"thread=main", java.lang.invoke.MethodHandleNatives.resolve(), line=-1 bci=-1
main[1] >
Exception occurred: java.lang.NoSuchMethodError (to be caught at: java.lang.invoke.MemberName$Factory.resolve(), line=1,045 bci=56)"thread=main", java.lang.invoke.MethodHandleNatives.resolve(), line=-1 bci=-1
main[1] Removed: all java.lang.I*
main[1] >
Breakpoint hit: "thread=main", CatchPatternTestTarg.partTwo(), line=32 bci=0
32 loop(3);