Skip to content

Commit

Permalink
Add missing method implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-tremblay committed Oct 8, 2018
1 parent cd17445 commit 15a4de6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gae/src/main/java/org/objenesis/gae/JspWriterListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ public void instantiatorUnsupported(Class<?> c, Throwable t) {
}
}

@Override
public void instantiatorNotFound(String className, Throwable t) {
ByteArrayOutputStream b = new ByteArrayOutputStream();
t.printStackTrace(new PrintStream(b));
try {
writer.println(String.format(PATTERN, className + " not found", "KO - " + t));
} catch (IOException e) {
throw new RuntimeException(e);
}
}

private Typology getTypology(Class<?> c) {
Instantiator instantiatorAnn = c.getAnnotation(Instantiator.class);
return instantiatorAnn == null ? Typology.UNKNOWN : instantiatorAnn.value();
Expand Down

0 comments on commit 15a4de6

Please sign in to comment.