chibash
4f35e4e1a8
prohibits too many items from being added to a constant pool
1 year ago
chibash
c00688b472
uncomments test code suggested by PR405
2 years ago
chibash
b1c09a1476
fixs a compilation problem although one test still fails.
2 years ago
chibash
82e478b285
changes test code because package java.rmi.activation.ActivationGroupDesc does not exist any longer.
2 years ago
eshizhan
5bccb19933
add unit tests for LocalVariableAttribute.variableNameByIndex and MethodParametersAttribute.parameterName
3 years ago
Søren Gjesse
d2e757ee44
Check for extended frame type when updating StackTableOffset offset
Fixes #350
3 years ago
chibash
1c4e31b967
fixes Issue #339
3 years ago
chibash
da043b46bc
fixes a bug of javassist.bytecode.stackmap, which was reported as Issue #328.
3 years ago
User
a303209489
fix CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException
4 years ago
Pietro Braione
a3005aaf4e
Fixes to support the full syntax of possible signatures
4 years ago
chibash
150709141c
fixes a bug involuved in Pull Request #294
4 years ago
ximsfei
27999eefaf
add unit test
4 years ago
chibash
c78e17c67f
fixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275
4 years ago
chibash
9108650902
adds CtBehavior#insertAfter(String,boolean,boolean) for Issue #275
4 years ago
Rich Bolen
699b301bad
Incorporate feedback from the PR
4 years ago
Rich Bolen
c08c21ebd2
Add support for the new Dynamic constant (17) created in java 11
4 years ago
chibash
8f4788e090
fixed Issue #263
4 years ago
Sam Ma
d6d6b2e959
Fix #265 javassist.CannotCompileException: [source error] the called constructor is private
4 years ago
chibash
413126268c
for release 3.25.0-GA
5 years ago
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 years ago
shifujun
c85bc4f090
add a new CodeConverter method:redirectMethodCallToStatic
5 years ago
chibash
6ea8021f15
fixes the bug reported in Issue #241.
It makes $r available in the code given to CtBehavior#insertBefore().
5 years ago
michalkurka
d64a1c8ab0
JAVASSIST-242: Demonstrates a race condition in DefineClassHelper
5 years ago
chibash
52138ca440
enables switch-case with string constants
5 years ago
chibash
9cfa81cce0
fixes another bug (supporting jdk.*) reported in #228
5 years ago
chibash
a82e2d71bd
fixes a bug reported in #228
5 years ago
chibash
6320bc4e14
changes CtClass#toClass() and ClassPool#toClass() etc. to support Java 11,
in other words, java.lang.invoke.MethodHandles.Lookup.
5 years ago
chibash
9ca1a7539c
adds test cases for NestHostAttribute and NestMembersAttribute.
5 years ago
chibash
c52b9c7100
modifies NestHostAttribute and NestMembersAttribute and adds test code
5 years ago
chibash
040a9cfc26
fixes a minor bug in a test case.
6 years ago
chibash
40d3223b12
fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping with try/catch)
6 years ago
chibash
a64f57f489
adds Modifier#isVarArgs()
6 years ago
Christian Melchior
620a8be65b
Add missing unit test
6 years ago
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 years ago
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 years ago
Christian Melchior
f4769c7ad7
Remove close method on ClassPath. Add unit tests for new behaviour.
6 years ago
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 years ago
nickl-
7e1a34a570
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
6 years ago
nickl-
e091603310
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
6 years ago
nickl-
0fd7647d3e
Suppress deprecation ClassPool.makePackage
6 years ago
nickl-
cd3aa32530
Added default serialVersionUID.
6 years ago
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 years ago
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 years ago
chibash
a4178f8362
removes JvstTest4#testJIRA150b because it is obsolete.
6 years ago
chibash
dfd0733e1f
modifies CtClass#setModifiers() to correctly support inner classes.
7 years ago
chibash
ab117a9fe3
delete testHotswap() because java 9 does not seem to allow a java agent to be attached after the JVM starts
7 years ago
chibash
d5ea6843af
adds javassist.util.HotSwapAgent
7 years ago
chibash
45ce361742
modifies to use sun.misc.Unsafe#defineClass so that Javassist can run with jigsaw
7 years ago
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 years ago
chibash
fb93ae8b8f
improves the backward compatibility of LoaderClassPath.
LoaderClassPath is modified to show the same behavior in both Java 8 and 9.
7 years ago