Browse Source

adds src/test/test5/SwitchCase.java. It also adds the javadoc comments.

tags/rel_3_25_0_ga
chibash 5 years ago
parent
commit
576b141e43
3 changed files with 11 additions and 1 deletions
  1. 1
    1
      Readme.html
  2. 5
    0
      src/main/javassist/util/proxy/ProxyFactory.java
  3. 5
    0
      src/test/test5/SwitchCase.java

+ 1
- 1
Readme.html View File

@@ -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

+ 5
- 0
src/main/javassist/util/proxy/ProxyFactory.java View File

@@ -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) {

+ 5
- 0
src/test/test5/SwitchCase.java View File

@@ -0,0 +1,5 @@
package test5;

public class SwitchCase {
public static final String STR1 = "foo";
}

Loading…
Cancel
Save