summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClass.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-09-04 16:57:00 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-09-04 16:57:00 +0000
commit19d816cade1433304548903c09a993bb1ba3c1ed (patch)
tree27bf16b27a4a69c5acd5f91f0ee2aa5f0fc038d7 /src/main/javassist/CtClass.java
parentf4bc17b8dcd1f9cefbae6af6cfcca606900e0aca (diff)
downloadjavassist-19d816cade1433304548903c09a993bb1ba3c1ed.tar.gz
javassist-19d816cade1433304548903c09a993bb1ba3c1ed.zip
improved a message for RuntimeExceptions.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@203 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r--src/main/javassist/CtClass.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index a96701b2..1b3b588b 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -249,6 +249,8 @@ public abstract class CtClass {
void freeze() {}
+ /* Note: this method is overridden by CtClassType
+ */
void checkModify() throws RuntimeException {
if (isFrozen())
throw new RuntimeException(getName() + " class is frozen");