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