< prev index next >

test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java

Print this page
8200128: Fix some "annoations" typos
Reviewed-by: alanb


  67             "  } catch(@TC Exception e) { }" +
  68             "}";
  69     }
  70 
  71     @TADescription(annotation = "TA", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  72     @TADescription(annotation = "TB", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
  73     @TADescription(annotation = "TC", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
  74     public String multipleExceptions3() {
  75         return "void multipleExceptions() { " +
  76             "  try { new Object(); " +
  77             "  } catch(@TA Exception e1) { "+
  78             "    try { new Object(); " +
  79             "    } catch(@TB Exception e2) {" +
  80             "      try { new Object(); } catch(@TC Exception e3) { }" +
  81             "    }" +
  82             "  }" +
  83             "}";
  84     }
  85 
  86     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  87     public String exceptionRepeatableAnnoation() {
  88         return "void exception() { try { new Object(); } catch(@RTA @RTA Exception e) { } }";
  89     }
  90 
  91     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  92     @TADescription(annotation = "RTBs", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
  93     @TADescription(annotation = "RTCs", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
  94     public String multipleExceptionsRepeatableAnnotation1() {
  95         return "void multipleExceptions() { " +
  96                 "try { new Object(); } catch(@RTA @RTA Exception e) { }" +
  97                 "try { new Object(); } catch(@RTB @RTB Exception e) { }" +
  98                 "try { new Object(); } catch(@RTC @RTC Exception e) { }" +
  99                 " }";
 100     }
 101 
 102     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
 103     @TADescription(annotation = "RTBs", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
 104     @TADescription(annotation = "RTCs", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
 105     public String multipleExceptionsRepeatableAnnotation2() {
 106         return "void multipleExceptions() { " +
 107                 "  try { new Object(); " +




  67             "  } catch(@TC Exception e) { }" +
  68             "}";
  69     }
  70 
  71     @TADescription(annotation = "TA", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  72     @TADescription(annotation = "TB", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
  73     @TADescription(annotation = "TC", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
  74     public String multipleExceptions3() {
  75         return "void multipleExceptions() { " +
  76             "  try { new Object(); " +
  77             "  } catch(@TA Exception e1) { "+
  78             "    try { new Object(); " +
  79             "    } catch(@TB Exception e2) {" +
  80             "      try { new Object(); } catch(@TC Exception e3) { }" +
  81             "    }" +
  82             "  }" +
  83             "}";
  84     }
  85 
  86     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  87     public String exceptionRepeatableAnnotation() {
  88         return "void exception() { try { new Object(); } catch(@RTA @RTA Exception e) { } }";
  89     }
  90 
  91     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
  92     @TADescription(annotation = "RTBs", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
  93     @TADescription(annotation = "RTCs", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
  94     public String multipleExceptionsRepeatableAnnotation1() {
  95         return "void multipleExceptions() { " +
  96                 "try { new Object(); } catch(@RTA @RTA Exception e) { }" +
  97                 "try { new Object(); } catch(@RTB @RTB Exception e) { }" +
  98                 "try { new Object(); } catch(@RTC @RTC Exception e) { }" +
  99                 " }";
 100     }
 101 
 102     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
 103     @TADescription(annotation = "RTBs", type = EXCEPTION_PARAMETER, exceptionIndex = 1)
 104     @TADescription(annotation = "RTCs", type = EXCEPTION_PARAMETER, exceptionIndex = 2)
 105     public String multipleExceptionsRepeatableAnnotation2() {
 106         return "void multipleExceptions() { " +
 107                 "  try { new Object(); " +


< prev index next >