aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* add unit testximsfei2019-10-171-4/+8
|
* fixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275chibash2019-09-231-1/+1
|
* adds CtBehavior#insertAfter(String,boolean,boolean) for Issue #275chibash2019-09-202-0/+47
|
* Merge pull request #267 from sam-ma/masterShigeru Chiba2019-09-022-0/+53
|\ | | | | Fix #265 javassist.CannotCompileException: [source error] the called …
| * Fix #265 javassist.CannotCompileException: [source error] the called ↵Sam Ma2019-07-232-0/+53
| | | | | | | | constructor is private
* | fixed Issue #263chibash2019-07-273-3/+20
|/
* 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-202-0/+40
| | | | access to the private constructor of the host class
* add a new CodeConverter method:redirectMethodCallToStaticshifujun2019-02-012-0/+36
|
* fixes the bug reported in Issue #241.chibash2019-01-282-0/+28
| | | | It makes $r available in the code given to CtBehavior#insertBefore().
* adds src/test/test5/SwitchCase.java. It also adds the javadoc comments.chibash2019-01-271-0/+5
|
* 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-0819-414/+197
| | | | in other words, java.lang.invoke.MethodHandles.Lookup.
* adds test cases for NestHostAttribute and NestMembersAttribute.chibash2018-09-023-0/+35
|
* modifies NestHostAttribute and NestMembersAttribute and adds test codechibash2018-09-021-0/+24
|
* adds a comment for the fix to JIRA JASSIST-267chibash2018-09-021-0/+31
|
* fixed JASSIST-267NingZhang-Ericsson2018-07-131-2/+47
|
* fixes a minor bug in a test case.chibash2018-05-082-1/+1
|
* Merge pull request #168 from cmelchior/cm/bug/classpath-closeShigeru Chiba2018-05-075-2/+66
|\ | | | | [WIP] Fix leaking file handlers
| * Add missing unit testChristian Melchior2017-11-134-2/+24
| |
| * CleanupChristian Melchior2017-11-122-4/+0
| |
| * Merge branch 'master' into cm/bug/classpath-closeChristian Melchior2017-11-1267-29/+149
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-123-0/+29
| | |
| * | Update test READMEChristian Melchior2017-11-121-2/+19
| | |
* | | fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping ↵chibash2017-11-152-0/+39
| | | | | | | | | | | | with try/catch)
* | | adds Modifier#isVarArgs()chibash2017-11-151-0/+6
| | |
* | | adds Modifier#isVarArgs()chibash2017-11-151-0/+6
| | |
* | | Merge pull request #159 from nickl-/scoped-poolShigeru Chiba2017-11-1510-0/+514
|\ \ \ | | | | | | | | Fixes to javassist.scopepool
| * | | Fixes to javassist.scopepoolnickl-2017-11-1210-0/+514
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applied parameters and squashed all compiler warnings. Changed loops to enhanced for where appropriate. Fixed SoftValueHashMap: Made it a raw type. Overwritten implementation of the `get` method correctly unwrapped the reference but the methods `containsValue` and `entrySet` needed to be fixed. Implemented the remaining outstanding methods from the `java.util.Map` contract `values`, `putAll` and `keySet`. Dropped `AbstractMap` inheritance as we were not inheriting anything anymore. Changed internal map to `ConcurrentHashMap' to be atomic and parallel safe. Found original unit tests from jboss retro which are now updated to reflect the javassist versions of the scoped pool classes. Added tests for the SoftValueHashMap including test which overloads the heap to ensure the cache cleans itself appropriately.
* | | Merge pull request #158 from nickl-/secure-privilegedShigeru Chiba2017-11-151-0/+281
|\ \ \ | | | | | | | | Secure privileged
| * | | Some functional unit tests proofs.nickl-2017-11-121-0/+281
| |/ / | | | | | | | | | | | | | | | Proves that you cannot access restricted functionality then goes ahead and mock test all 3 exposures JAVA_9, JAVA_7+ and OTHERS by changing the private static final class referenced default chosen on initialise.
* | | Merge pull request #166 from nickl-/test-ctfield-make-with-thisShigeru Chiba2017-11-142-0/+15
|\ \ \ | | | | | | | | Unit Test: CtField.make referencing 'this'.
| * | | Unit Test: CtField.make referencing 'this'.nickl-2017-11-122-0/+15
| |/ / | | | | | | | | | | | | 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-122-0/+59
|/ / | | | | | | | | 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-3057-0/+63
| | | | | | | | | | | | | | | | 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/+3
| | | | | | | | Changed to org.junit.Assert.
* | 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
| |
* | Added default serialVersionUID.nickl-2017-10-2814-6/+67
| |
* | Upgrade junit from ver 3 to 4.nickl-2017-10-275-17/+9
| | | | | | | | | | | | | | | | | | 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.
* | Move runtests to build directory.nickl-2017-10-272-3/+3
|/ | | | Move the test output folder 'runtests' to target or build directory so that mvn clean can clean that.
* removes JvstTest4#testJIRA150b because it is obsolete.rel_3_22_1_gachibash2017-10-111-1/+2
|
* modifies CtClass#setModifiers() to correctly support inner classes.chibash2017-06-012-0/+61
|
* delete testHotswap() because java 9 does not seem to allow a java agent to ↵chibash2017-05-311-0/+4
| | | | be attached after the JVM starts
* adds javassist.util.HotSwapAgentchibash2017-04-163-1/+35
|
* adds javassist.util.proxy.ProxyFactory#onlyPublicMethods. If true, ↵chibash2017-04-151-1/+68
| | | | Javassist uses java.lang.invoke.MethodHandles.Lookup to load a class.