aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist
Commit message (Collapse)AuthorAgeFilesLines
* Minimal changes make IDEA 2023.2 work out-of-boxshifujun2023-12-128-25/+0
| | | | | | | | | Correct maven-compiler-plugin JDK version for IDEA import Compiler bytecode version. Remove JvstTestRoot's constructor, otherwise IDEA cannot show Run icon aside testMethod. Another way is adding suite() static method to those classes. Now we can clone and open project with IDEA 2023.2. Debug single test case with IDEA is very useful.
* Fix MemberResolver.lookupMethod bug when super class has more precise matchshifujun2023-12-082-2/+61
| | | | | | | When onlyExact=false and super class have a more precise match, it should not return with current class's maybe result. New added testSuperCall reveals the problem.
* fixes GitHub Issue 462 (Internal class issues in the Java 21)wuwen2023-11-031-0/+32
|
* prohibits too many items from being added to a constant pool.chibash2022-08-071-2/+7
| | | | the previous commit was wrong.
* prohibits too many items from being added to a constant poolchibash2022-08-071-0/+14
|
* uncomments test code suggested by PR405chibash2022-05-131-1/+1
|
* fixs a compilation problem although one test still fails.chibash2022-05-122-11/+11
|
* Merge branch 'master' into masterShigeru Chiba2022-05-115-8/+188
|\
| * Merge pull request #278 from ximsfei/masterShigeru Chiba2022-05-101-4/+8
| |\ | | | | | | fixes a bug of ClassFile#renameClass(), some imports could not be successfully renamed.
| | * add unit testximsfei2019-10-171-4/+8
| | |
| * | changes test code because package java.rmi.activation.ActivationGroupDesc ↵chibash2022-05-101-4/+2
| | | | | | | | | | | | does not exist any longer.
| * | Merge pull request #306 from nschaefe/masterShigeru Chiba2021-04-261-0/+1
| |\ \ | | | | | | | | fix issue 305: CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException
| | * | fix CodeConverter.replaceArrayAccess leads to ↵User2020-03-241-0/+1
| | | | | | | | | | | | | | | | java.util.ConcurrentModificationException
| * | | Merge pull request #351 from sgjesse/issue-350Shigeru Chiba2021-04-261-0/+77
| |\ \ \ | | | | | | | | | | | | | | | This fixes Issue #350. Check for extended frame type when updating StackMapTable offset.
| | * | | Check for extended frame type when updating StackTableOffset offsetSøren Gjesse2020-12-141-0/+77
| | | | | | | | | | | | | | | | | | | | Fixes #350
| * | | | add unit tests for LocalVariableAttribute.variableNameByIndex and ↵eshizhan2021-01-292-0/+7
| |/ / / | | | | | | | | | | | | MethodParametersAttribute.parameterName
| * | | fixes Issue #339chibash2020-10-161-0/+75
| | | |
| * | | fixes a bug of javassist.bytecode.stackmap, which was reported as Issue #328.chibash2020-07-131-0/+18
| |/ /
* / / Fixes to support the full syntax of possible signaturesPietro Braione2020-01-221-0/+84
|/ /
* / fixes a bug involuved in Pull Request #294chibash2019-12-241-0/+16
|/
* fixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275chibash2019-09-231-1/+1
|
* adds CtBehavior#insertAfter(String,boolean,boolean) for Issue #275chibash2019-09-201-0/+12
|
* Merge pull request #267 from sam-ma/masterShigeru Chiba2019-09-021-0/+27
|\ | | | | Fix #265 javassist.CannotCompileException: [source error] the called …
| * Fix #265 javassist.CannotCompileException: [source error] the called ↵Sam Ma2019-07-231-0/+27
| | | | | | | | constructor is private
* | fixed Issue #263chibash2019-07-272-0/+15
|/
* for release 3.25.0-GAchibash2019-04-161-1/+2
|
* Fix #252 make instrumentation works on JDK11 for the inner class which has ↵Sam Ma2019-03-201-0/+21
| | | | access to the private constructor of the host class
* add a new CodeConverter method:redirectMethodCallToStaticshifujun2019-02-011-0/+14
|
* fixes the bug reported in Issue #241.chibash2019-01-281-0/+14
| | | | It makes $r available in the code given to CtBehavior#insertBefore().
* JAVASSIST-242: Demonstrates a race condition in DefineClassHelpermichalkurka2019-01-251-0/+75
|
* enables switch-case with string constantschibash2018-12-101-0/+31
|
* fixes another bug (supporting jdk.*) reported in #228chibash2018-12-061-0/+12
|
* fixes a bug reported in #228chibash2018-12-051-0/+12
|
* changes CtClass#toClass() and ClassPool#toClass() etc. to support Java 11,chibash2018-09-088-125/+133
| | | | in other words, java.lang.invoke.MethodHandles.Lookup.
* adds test cases for NestHostAttribute and NestMembersAttribute.chibash2018-09-021-0/+13
|
* modifies NestHostAttribute and NestMembersAttribute and adds test codechibash2018-09-021-0/+24
|
* fixes a minor bug in a test case.chibash2018-05-081-1/+1
|
* Merge pull request #168 from cmelchior/cm/bug/classpath-closeShigeru Chiba2018-05-071-0/+32
|\ | | | | [WIP] Fix leaking file handlers
| * Add missing unit testChristian Melchior2017-11-131-1/+11
| |
| * Merge branch 'master' into cm/bug/classpath-closeChristian Melchior2017-11-1220-22/+42
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # pom.xml # src/main/javassist/ByteArrayClassPath.java # src/main/javassist/ClassClassPath.java # src/main/javassist/ClassPoolTail.java # src/main/javassist/LoaderClassPath.java # src/main/javassist/URLClassPath.java
| * | Remove close method on ClassPath. Add unit tests for new behaviour.Christian Melchior2017-11-121-0/+22
| | |
* | | fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping ↵chibash2017-11-151-0/+17
| | | | | | | | | | | | with try/catch)
* | | adds Modifier#isVarArgs()chibash2017-11-151-0/+6
| | |
* | | Merge pull request #166 from nickl-/test-ctfield-make-with-thisShigeru Chiba2017-11-141-0/+8
|\ \ \ | | | | | | | | Unit Test: CtField.make referencing 'this'.
| * | | Unit Test: CtField.make referencing 'this'.nickl-2017-11-121-0/+8
| | |/ | |/| | | | | | | | | | 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.
* / | Fix #152 inner class modifiers.nickl-2017-11-121-0/+46
|/ / | | | | | | | | Applied fix for #152 "Wrong modifiers returned for nested classes" as suggested by @pietrobraione. Includes unit tests for all access modifiers and static.
* | Squash compiler warnings in tests.nickl-2017-10-3015-0/+17
| | | | | | | | | | | | | | | | 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.
* | Fix deperecated junit.framework.Assert.nickl-2017-10-301-1/+1
| | | | | | | | Changed to org.junit.Assert.
* | Fix deperecated junit.framework.Assert.nickl-2017-10-301-1/+1
| | | | | | | | Changed to org.junit.Assert.
* | Suppress deprecation ClassPool.makePackagenickl-2017-10-281-0/+2
| |