summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2019-01-27 19:35:24 +0900
committerchibash <chiba@javassist.org>2019-01-27 19:35:24 +0900
commit576b141e43b5fc3506f3a57ee4d5583486ec49a0 (patch)
tree95e876e3ccbd0224a12bbda2ba80599c431516d4
parent023f7552ee2bc31277e04852b7d906ca3dd07881 (diff)
downloadjavassist-576b141e43b5fc3506f3a57ee4d5583486ec49a0.tar.gz
javassist-576b141e43b5fc3506f3a57ee4d5583486ec49a0.zip
adds src/test/test5/SwitchCase.java. It also adds the javadoc comments.
-rw-r--r--Readme.html2
-rw-r--r--src/main/javassist/util/proxy/ProxyFactory.java5
-rw-r--r--src/test/test5/SwitchCase.java5
3 files changed, 11 insertions, 1 deletions
diff --git a/Readme.html b/Readme.html
index 50b3eb63..f8f2e55d 100644
--- a/Readme.html
+++ b/Readme.html
@@ -283,7 +283,7 @@ see javassist.Dump.
<p>-version 3.25
<ul>
- <li>GitHub Issue #72 (PR #231).
+ <li>GitHub Issue #72 (PR #231), #242 (PR #243).
</ul>
<p>-version 3.24.1 on December 9, 2018
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java
index ae368b2a..98e352ca 100644
--- a/src/main/javassist/util/proxy/ProxyFactory.java
+++ b/src/main/javassist/util/proxy/ProxyFactory.java
@@ -472,6 +472,10 @@ public class ProxyFactory {
/**
* Generates a proxy class using the current filter.
+ * It loads a class file by the given
+ * {@code java.lang.invoke.MethodHandles.Lookup} object,
+ * which can be obtained by {@code MethodHandles.lookup()} called from
+ * somewhere in the package that the loaded class belongs to.
*
* @param lookup used for loading the proxy class.
* It needs an appropriate right to invoke {@code defineClass}
@@ -492,6 +496,7 @@ public class ProxyFactory {
* It needs an appropriate right to invoke {@code defineClass}
* for the proxy class.
* @param filter the filter.
+ * @see #createClass(Lookup)
* @since 3.24
*/
public Class<?> createClass(Lookup lookup, MethodFilter filter) {
diff --git a/src/test/test5/SwitchCase.java b/src/test/test5/SwitchCase.java
new file mode 100644
index 00000000..7a0ebe21
--- /dev/null
+++ b/src/test/test5/SwitchCase.java
@@ -0,0 +1,5 @@
+package test5;
+
+public class SwitchCase {
+ public static final String STR1 = "foo";
+}