Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
daemonCodeAnalyzer
/
advHighlighting7
/
PreciseRethrowOfOneExceptionInTheBlock.java
blob: a8bd8e6a7a1d72f7a35c208f0296dd455ca01955 [
file
]
class
A1
extends
Exception
{}
class
A2
extends
Exception
{}
class
BA1
extends
A1
{}
class
ErrorTest
{
public
void
testNok
(
boolean
mode
)
throws
BA1
,
A2
{
try
{
if
(
mode
)
{
throw
new
BA1
();
}
else
{
throw
new
A2
();
}
}
catch
(
A1 ex
)
{
throw
ex
;
}
}
}