Cross Reference: Neg02.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
multicatch
/
Neg02.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
549
N/A
/*
549
N/A
* @test /nodynamiccopyright/
549
N/A
* @bug 6943289
549
N/A
*
549
N/A
* @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
549
N/A
* @author mcimadamore
549
N/A
* @
compile
/
fail
/
ref
=Neg02.out -XDrawDiagnostics
Neg02.java
549
N/A
*
549
N/A
*/
549
N/A
549
N/A
class
Neg02
{
549
N/A
static
class
A
extends
Exception
{}
549
N/A
static
class
B
extends
Exception
{}
549
N/A
549
N/A
void
m() {
549
N/A
try
{
549
N/A
if
(
true
) {
549
N/A
throw
new
A();
549
N/A
}
549
N/A
else
{
549
N/A
throw
new
B();
549
N/A
}
734
N/A
}
catch
(
final
A | B
ex
) {
734
N/A
ex
=
new
B();
734
N/A
}
549
N/A
}
549
N/A
}