aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClass.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2018-09-10 02:39:42 +0900
committerchibash <chiba@javassist.org>2018-09-10 02:39:42 +0900
commitc32e946317054a13214b772188a3daa8fc44f425 (patch)
tree6b2bac6adaa1f76ef4684e55862f400dff383355 /src/main/javassist/CtClass.java
parent46069993ec2284e5e48347fd445997a4f0ba5321 (diff)
downloadjavassist-c32e946317054a13214b772188a3daa8fc44f425.tar.gz
javassist-c32e946317054a13214b772188a3daa8fc44f425.zip
adds a method taking Lookup to java.util.proxy.
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r--src/main/javassist/CtClass.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index 140a9cab..bb5bab6e 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -1295,8 +1295,9 @@ public abstract class CtClass {
* Once this method is called, further modifications are not
* allowed any more.
*
- * <p>This method is provided for convenience. If you need more
- * complex functionality, you should write your own class loader.
+ * <p>This method is provided for convenience. You should use
+ * {@code toClass(Lookup)} for better compatibility with the
+ * module system.
*
* <p>Note: this method calls <code>toClass()</code>
* in <code>ClassPool</code>.
@@ -1308,6 +1309,7 @@ public abstract class CtClass {
* @param neighbor A class belonging to the same package that this
* class belongs to. It is used to load the class.
* @see ClassPool#toClass(CtClass,Class)
+ * @see #CtClass(java.lang.invoke.MethodHandles.Lookup)
* @since 3.24
*/
public Class<?> toClass(Class<?> neighbor) throws CannotCompileException