diff -r 0384683c64be -r ddb4a2bfcd82 test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java --- a/test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java Tue May 14 13:55:35 2013 -0700 +++ b/test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java Tue May 14 15:04:06 2013 -0700 @@ -47,11 +47,43 @@ @TADescription(annotation = "TB", type = EXCEPTION_PARAMETER, exceptionIndex = 1), @TADescription(annotation = "TC", type = EXCEPTION_PARAMETER, exceptionIndex = 2) }) - public String multipleExceptions() { + public String multipleExceptions1() { return "void multipleExceptions() { " + "try { new Object(); } catch(@TA Exception e) { }" + "try { new Object(); } catch(@TB Exception e) { }" + "try { new Object(); } catch(@TC Exception e) { }" + " }"; } + + @TADescriptions({ + @TADescription(annotation = "TA", type = EXCEPTION_PARAMETER, exceptionIndex = 0), + @TADescription(annotation = "TB", type = EXCEPTION_PARAMETER, exceptionIndex = 1), + @TADescription(annotation = "TC", type = EXCEPTION_PARAMETER, exceptionIndex = 2) + }) + public String multipleExceptions2() { + return "void multipleExceptions() { " + + " try { new Object(); " + + " try { new Object(); " + + " try { new Object(); } catch(@TA Exception e) { }" + + " } catch(@TB Exception e) { }" + + " } catch(@TC Exception e) { }" + + "}"; + } + + @TADescriptions({ + @TADescription(annotation = "TA", type = EXCEPTION_PARAMETER, exceptionIndex = 0), + @TADescription(annotation = "TB", type = EXCEPTION_PARAMETER, exceptionIndex = 1), + @TADescription(annotation = "TC", type = EXCEPTION_PARAMETER, exceptionIndex = 2) + }) + public String multipleExceptions3() { + return "void multipleExceptions() { " + + " try { new Object(); " + + " } catch(@TA Exception e1) { "+ + " try { new Object(); " + + " } catch(@TB Exception e2) {" + + " try { new Object(); } catch(@TC Exception e3) { }" + + " }" + + " }" + + "}"; + } }