Skip to content

Commit

Permalink
Improve error message when class writing fails in CompilerUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongrong Zhong committed Jan 18, 2017
1 parent e6eda21 commit 1a66363
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -98,7 +98,7 @@ private static Map<String, Class<?>> defineClasses(List<ClassDefinition> classDe
try {
classDefinition.visit(ADD_FAKE_LINE_NUMBER ? new AddFakeLineNumberClassVisitor(cw) : cw);
}
catch (IndexOutOfBoundsException e) {
catch (IndexOutOfBoundsException | NegativeArraySizeException e) {
Printer printer = new Textifier();
StringWriter stringWriter = new StringWriter();
TraceClassVisitor tcv = new TraceClassVisitor(null, printer, new PrintWriter(stringWriter));
Expand Down

0 comments on commit 1a66363

Please sign in to comment.