From 1ae8f41102ad35c0ddc5a4ab73d0a38434e0d6c8 Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 20 Jun 2005 17:05:57 +0000 Subject: [PATCH] minor fixes git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@182 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/CannotCompileException.java | 11 +++++++++++ .../javassist/bytecode/annotation/Annotation.java | 3 +++ 2 files changed, 14 insertions(+) diff --git a/src/main/javassist/CannotCompileException.java b/src/main/javassist/CannotCompileException.java index 5d2b3223..6151a0f2 100644 --- a/src/main/javassist/CannotCompileException.java +++ b/src/main/javassist/CannotCompileException.java @@ -106,4 +106,15 @@ public class CannotCompileException extends Exception { cause.printStackTrace(w); } } + + /** + * Prints this exception and its backtrace. + */ + public void printStackTrace(java.io.PrintStream w) { + super.printStackTrace(w); + if (cause != null) { + w.println("Caused by:"); + cause.printStackTrace(w); + } + } } diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index b9c63b9b..e542d8cb 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -34,6 +34,9 @@ import java.util.Iterator; * * @see javassist.bytecode.AnnotationsAttribute#getAnnotations() * @see javassist.bytecode.ParameterAnnotationsAttribute#getAnnotations() + * @see MemberValue + * @see MemberValueVisitor + * @see AnnotationsWriter * * @author Bill Burke * @author Shigeru Chiba -- 2.39.5