diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-08-16 15:31:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-08-16 15:31:30 +0000 |
commit | 7fd8dd68388f6e910b1e0f54df363a84481d0809 (patch) | |
tree | 723dd7ff247436417061b5a3304fc8bbb85cc93f /src/main/javassist/runtime | |
parent | 9308710319a346bfb59f8c14e0675e5d91beff39 (diff) | |
download | javassist-7fd8dd68388f6e910b1e0f54df363a84481d0809.tar.gz javassist-7fd8dd68388f6e910b1e0f54df363a84481d0809.zip |
.class support
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@123 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/runtime')
-rw-r--r-- | src/main/javassist/runtime/DotClass.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/javassist/runtime/DotClass.java b/src/main/javassist/runtime/DotClass.java new file mode 100644 index 00000000..2c4ded97 --- /dev/null +++ b/src/main/javassist/runtime/DotClass.java @@ -0,0 +1,28 @@ +/* + * Javassist, a Java-bytecode translator toolkit. + * Copyright (C) 1999-2004 Shigeru Chiba. All Rights Reserved. + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. Alternatively, the contents of this file may be used under + * the terms of the GNU Lesser General Public License Version 2.1 or later. + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + */ + +package javassist.runtime; + +/** + * A support class for implementing <code>.class</code> notation. + * This is required at runtime + * only if <code>.class</code> notation is used in source code given + * to the Javassist compiler. + */ +public class DotClass { + public static NoClassDefFoundError fail(ClassNotFoundException e) { + return new NoClassDefFoundError(e.getMessage()); + } +} |