Rich Bolen
699b301bad
Incorporate feedback from the PR
4 lat temu
Rich Bolen
c08c21ebd2
Add support for the new Dynamic constant (17) created in java 11
4 lat temu
chibash
8f4788e090
fixed Issue #263
4 lat temu
chibash
413126268c
for release 3.25.0-GA
5 lat temu
Sam Ma
e71398c6fc
Fix #252 make instrumentation works on JDK11 for the inner class which has access to the private constructor of the host class
5 lat temu
shifujun
c85bc4f090
add a new CodeConverter method:redirectMethodCallToStatic
5 lat temu
chibash
6ea8021f15
fixes the bug reported in Issue #241.
It makes $r available in the code given to CtBehavior#insertBefore().
5 lat temu
michalkurka
d64a1c8ab0
JAVASSIST-242: Demonstrates a race condition in DefineClassHelper
5 lat temu
chibash
52138ca440
enables switch-case with string constants
5 lat temu
chibash
9cfa81cce0
fixes another bug (supporting jdk.*) reported in #228
5 lat temu
chibash
a82e2d71bd
fixes a bug reported in #228
5 lat temu
chibash
6320bc4e14
changes CtClass#toClass() and ClassPool#toClass() etc. to support Java 11,
in other words, java.lang.invoke.MethodHandles.Lookup.
5 lat temu
chibash
9ca1a7539c
adds test cases for NestHostAttribute and NestMembersAttribute.
5 lat temu
chibash
c52b9c7100
modifies NestHostAttribute and NestMembersAttribute and adds test code
5 lat temu
chibash
040a9cfc26
fixes a minor bug in a test case.
6 lat temu
chibash
40d3223b12
fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping with try/catch)
6 lat temu
chibash
a64f57f489
adds Modifier#isVarArgs()
6 lat temu
Christian Melchior
620a8be65b
Add missing unit test
6 lat temu
nickl-
d7e4f99372
Fix #152 inner class modifiers.
Applied fix for #152 "Wrong modifiers returned for nested classes" as suggested by @pietrobraione.
Includes unit tests for all access modifiers and static.
6 lat temu
nickl-
f4ce4aa16c
Unit Test: CtField.make referencing 'this'.
As per question raised in #161 passing 'this' reference for CtField value new object instance.
Also added assert for testing referncing 'this' for newly added field.
6 lat temu
Christian Melchior
f4769c7ad7
Remove close method on ClassPath. Add unit tests for new behaviour.
6 lat temu
nickl-
0165b2e18b
Squash compiler warnings in tests.
With the unit tests warnings were squashed by suppressing them with SuppressWarnings annotations, instead of
reparing the issues as was done with the source. Reasons being...
* The tests might be relying on the types as they were defined.
* If the tests were written to test against the correct forms they would've/should've stipulated those.
* Even unused members might be important to tests so we attempt to change as little as possible.
6 lat temu
nickl-
7e1a34a570
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
6 lat temu
nickl-
e091603310
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
6 lat temu
nickl-
0fd7647d3e
Suppress deprecation ClassPool.makePackage
6 lat temu
nickl-
cd3aa32530
Added default serialVersionUID.
6 lat temu
nickl-
ce84f84a17
Upgrade junit from ver 3 to 4.
There were minimal changes:
Some tests had their own runners these were discontinued as IDEs/maven run the tests anyway.
Removed the main methods for these.
2 tests were dependent on the running order so added the test sorter.
All tests succeed on junit 4 with legacy support.
6 lat temu
nickl-
6a8f1acef3
Move runtests to build directory.
Move the test output folder 'runtests' to target or build directory so that mvn clean can clean that.
6 lat temu
chibash
a4178f8362
removes JvstTest4#testJIRA150b because it is obsolete.
6 lat temu
chibash
dfd0733e1f
modifies CtClass#setModifiers() to correctly support inner classes.
7 lat temu
chibash
ab117a9fe3
delete testHotswap() because java 9 does not seem to allow a java agent to be attached after the JVM starts
7 lat temu
chibash
d5ea6843af
adds javassist.util.HotSwapAgent
7 lat temu
chibash
45ce361742
modifies to use sun.misc.Unsafe#defineClass so that Javassist can run with jigsaw
7 lat temu
chibash
6a3ed31976
updates the test code to run on Java 9 EA+149.
Due to the specification change of jigsaw, ClassLoader#defineClass()
cannot be invoked through reflection API. As a workaround,
--add-opens java.base/java.lang=ALL-UNNAMED
must be given to the JVM. The ant target "runtest9" adds this jvm
argument.
7 lat temu
chibash
fb93ae8b8f
improves the backward compatibility of LoaderClassPath.
LoaderClassPath is modified to show the same behavior in both Java 8 and 9.
7 lat temu
chibash
0e9ff9fd2b
enables removal of attributes
7 lat temu
chibash
f6992d66a0
allows adding a default method to an interface type.
7 lat temu
chibash
0ebd27d23e
fixes calls to a deprecated method in Java 9.
7 lat temu
chibash
4ed22b0f7f
modifies a test case. Now all the test cases run successfully with Java 9 EA.
7 lat temu
chibash
7ec83a2e3d
fixes a bug of stackmap generation. The bug was reported here: https://github.com/jboss-javassist/javassist/issues/83
7 lat temu
chibash
5e4572a90f
fixes many compatibility problems with older Java (i.e. 1.4)
8 lat temu
chibash
89c91facc0
fixes a bug JIRA JASSIST-262
8 lat temu
chibash
b110efa847
fixes JIRA JASSIST-250
8 lat temu
chibash
d2d00601aa
modifies the implementation of that invokes an interface default method
8 lat temu
chibash
949def744d
fixes a bug of test5.JvstTest5.testInvalidCastWithDollar
8 lat temu
chibash
7314726c37
updates javassist.util.proxy to support a default interface method in Java 8
8 lat temu
chibash
1a33243aac
fixes JASSIST-256, adding an annotation to a class doesn't work on reflection
8 lat temu
chibash
4cf21faf54
fixes JASSIST-255 Primitive array return values cause invalid cast to Object
8 lat temu
chibash
5b0544a385
modifies a test case for JIRA JASSIST-248.
8 lat temu
chibash
e44bf416bf
fixes JIRA JASSIST-248.
Javassist cannot compile super.m() if m is a default method
declared in an interface.
8 lat temu