jdk-24/langtools/test/tools/javac/6558548/T6558548_latest.out
Maurizio Cimadamore eb4e1b86cd 6558548: The compiler needs to be aligned with clarified specification of throws
Javac should issue unconditional warnings when 'dead' catch clauses are detected

Reviewed-by: jjg
2011-03-16 11:12:26 +00:00

24 lines
1.9 KiB
Plaintext

T6558548.java:20:9: compiler.warn.unreachable.catch: java.io.FileNotFoundException
T6558548.java:134:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:142:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:151:9: compiler.warn.unreachable.catch.1: java.lang.InterruptedException,java.lang.RuntimeException
T6558548.java:159:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
T6558548.java:160:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:168:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
T6558548.java:169:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:185:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:193:9: compiler.warn.unreachable.catch: java.lang.RuntimeException
T6558548.java:211:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:220:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:230:9: compiler.warn.unreachable.catch.1: java.lang.InterruptedException,java.lang.RuntimeException,java.lang.Error
T6558548.java:239:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
T6558548.java:240:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:249:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
T6558548.java:250:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:268:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:277:9: compiler.warn.unreachable.catch.1: java.lang.RuntimeException,java.lang.Error
T6558548.java:291:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
T6558548.java:298:9: compiler.err.except.never.thrown.in.try: java.lang.InterruptedException
6 errors
15 warnings