aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* fixes the bug reported in Issue #241.chibash2019-01-283-1/+29
| | | | 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-272-0/+10
|
* Proposed fixes in DefineClassHelper & DefinePackageHelpermichalkurka2019-01-252-6/+0
| | | | | Don't try to clean-up after making a protected-final method accessible. No synchronization with concurrent access can cause errors.
* JAVASSIST-242: Demonstrates a race condition in DefineClassHelpermichalkurka2019-01-251-0/+75
|
* enables switch-case with string constantschibash2018-12-102-2/+81
|
* updates for relase 3.24.1rel_3_24_1_gachibash2018-12-092-2/+2
|
* fixes another bug (supporting jdk.*) reported in #228chibash2018-12-062-3/+20
|
* fixes a bug reported in #228chibash2018-12-052-1/+15
|
* fixes bugs in javadoc commentschibash2018-11-021-3/+3
|
* updates for release 3.24.0-GAchibash2018-11-012-2/+2
|
* fixes typos in javadocs.rel_3_24_0_rcchibash2018-10-059-36/+36
|
* avoids ConcurrentModificationException in 3.23.1-GA reported in Issue #224.chibash2018-10-051-2/+2
|
* stops a potential leak in JarClassPath openClassfile(). Issues #222.chibash2018-09-151-1/+3
|
* adds a method taking Lookup to java.util.proxy.chibash2018-09-104-13/+88
|
* adds Automatic-Module-Name to manifestchibash2018-09-091-0/+1
|
* modifies javassist.util.proxy.DefinePackageHelper to be compatible to Java 11.chibash2018-09-082-91/+105
| | | | It also adds a javadoc comment to CtClass#toClass() to recommend the users to use #toClass(Class) or #toClass(Lookup).
* changes CtClass#toClass() and ClassPool#toClass() etc. to support Java 11,chibash2018-09-0825-450/+530
| | | | in other words, java.lang.invoke.MethodHandles.Lookup.
* does refactoring for javassist.util.proxy.chibash2018-09-072-153/+150
|
* changes the version numberchibash2018-09-053-1/+5
|
* adds test cases for NestHostAttribute and NestMembersAttribute.chibash2018-09-023-0/+35
|
* modifies NestHostAttribute and NestMembersAttribute and adds test codechibash2018-09-024-1/+88
|
* Merge pull request #218 from dmitri-gb/masterShigeru Chiba2018-09-023-0/+92
|\ | | | | Add support for Java 11 NestHost and NestMembers attributes (JEP-181)
| * Add support for Java 11 NestHost and NestMembers attributesDmitri Gabbasov2018-08-233-0/+92
| |
* | adds a comment for the fix to JIRA JASSIST-267chibash2018-09-022-2/+33
| |
* | Merge pull request #210 from NingZhang-Ericsson/JASSIST-267Shigeru Chiba2018-08-312-6/+67
|\ \ | |/ |/| fixed JASSIST-267 (new )
| * Fix JASSIST-267NingZhang-Ericsson2018-07-131-5/+2
| | | | | | | | Clean code according to comments.
| * fixed JASSIST-267NingZhang-Ericsson2018-07-132-6/+70
| |
* | fixes issue #209 (NPE in Exception)chibash2018-07-191-1/+2
| |
* | Custom URL stream handler in ByteArrayClassPathAndres Luuk2018-07-091-2/+27
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise a normal streamhandler lookup is made and if javassist is used early on server startup protses this can lead to a deadlock on rare cases on WebSpheare. For example. A new StreamHandlerFactory is registered but not jet fully initialized. Now javassist is used at the same time but form another thread and it will be the first one to invoke the new StreamHandlerFactory and now it can deadlock with the other thread: Snipets from my deadlock: 3XMTHREADINFO "main" J9VMThread:0x000000000175EC00, omrthread_t:0x00007F4120008100, java/lang/Thread:0x00000000624290B8, state:B, prio=5 3XMTHREADBLOCK Blocked on: org/osgi/util/tracker/ServiceTracker$Tracked@0x00000000627F0A90 Owned by: "other-thread" (J9VMThread:0x0000000001B26300, java/lang/Thread:0x00000000629F1458) 3XMHEAPALLOC Heap bytes allocated since last GC cycle=0 (0x0) 3XMTHREADINFO3 Java callstack: 4XESTACKTRACE at org/osgi/util/tracker/ServiceTracker.getServiceReferences(ServiceTracker.java:525) 4XESTACKTRACE at org/eclipse/osgi/framework/internal/protocol/StreamHandlerFactory.createInternalURLStreamHandler(StreamHandlerFactory.java:162) 4XESTACKTRACE at org/eclipse/osgi/framework/internal/protocol/StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:118) 4XESTACKTRACE at java/net/URL.getURLStreamHandler(URL.java:1154) 4XESTACKTRACE at java/net/URL.<init>(URL.java:611(Compiled Code)) 4XESTACKTRACE at java/net/URL.<init>(URL.java:502(Compiled Code)) 4XESTACKTRACE at java/net/URL.<init>(URL.java:451) 4XESTACKTRACE at javassist/ByteArrayClassPath.find(JRebel:92) ... 4XESTACKTRACE at java/lang/ClassLoader.loadClassHelper(ClassLoader.java:924(Compiled Code)) 5XESTACKTRACE (entered lock: org/eclipse/core/launcher/Main$StartupClassLoader@0x0000000062F3AA88, entry count: 1) 3XMTHREADINFO "other-thread" J9VMThread:0x0000000001B26300, omrthread_t:0x00007F4120A5D060, java/lang/Thread:0x00000000629F1458, state:B, prio=5 3XMTHREADBLOCK Blocked on: org/eclipse/core/launcher/Main$StartupClassLoader@0x0000000062F3AA88 Owned by: "main" (J9VMThread:0x000000000175EC00, java/lang/Thread:0x00000000624290B8) 3XMHEAPALLOC Heap bytes allocated since last GC cycle=0 (0x0) 3XMTHREADINFO3 Java callstack: 4XESTACKTRACE at org/osgi/util/tracker/AbstractTracked.size(AbstractTracked.java:356) 4XESTACKTRACE at org/osgi/util/tracker/ServiceTracker.getServiceReferences(ServiceTracker.java:526) 5XESTACKTRACE (entered lock: org/osgi/util/tracker/ServiceTracker$Tracked@0x00000000627F0A90, entry count: 1) 4XESTACKTRACE at org/eclipse/osgi/framework/internal/protocol/StreamHandlerFactory.createInternalURLStreamHandler(StreamHandlerFactory.java:162) 4XESTACKTRACE at org/eclipse/osgi/framework/internal/protocol/StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:118) 4XESTACKTRACE at java/net/URL.getURLStreamHandler(URL.java:1154) 4XESTACKTRACE at java/net/URL.<init>(URL.java:611(Compiled Code)) 4XESTACKTRACE at java/net/URL.<init>(URL.java:502(Compiled Code)) 4XESTACKTRACE at java/net/URL.<init>(URL.java:451) 4XESTACKTRACE at java/net/URI.toURL(URI.java:1100) 4XESTACKTRACE at com/ibm/jsse2/av.a(av.java:92) 4XESTACKTRACE at com/ibm/jsse2/av.engineInit(av.java:7) 4XESTACKTRACE at javax/net/ssl/TrustManagerFactory.init(TrustManagerFactory.java:25)
* updates for release 3.23.1rel_3_23_1_gachibash2018-07-022-2/+2
|
* [#171] Allow running on JDK 8 and possibly on JDK 7 as well. Fixes #171Christian Beikov2018-06-221-9/+43
|
* updates for release 3.23.0-GArel_3_23_0_gachibash2018-06-213-7/+7
|
* fixes a minor bug in a test case.chibash2018-05-082-1/+1
|
* Merge pull request #198 from beikov/JASSIST-271Shigeru Chiba2018-05-072-6/+36
|\ | | | | JASSIST-271 Allow running on Java 11 by falling back to ClassLoader.defineClass for Java > 10
| * JASSIST-271 Allow running on Java 11 by falling back to ↵Christian Beikov2018-04-292-6/+36
| | | | | | | | ClassLoader.defineClass for Java > 10
* | Merge pull request #168 from cmelchior/cm/bug/classpath-closeShigeru Chiba2018-05-0712-77/+96
|\ \ | |/ |/| [WIP] Fix leaking file handlers
| * Add missing unit testChristian Melchior2017-11-134-2/+24
| |
| * Fix merge mistakeChristian Melchior2017-11-132-2/+0
| |
| * CleanupChristian Melchior2017-11-122-4/+0
| |
| * Merge branch 'master' into cm/bug/classpath-closeChristian Melchior2017-11-12247-2492/+3936
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-129-68/+62
| | |
| * | Update test READMEChristian Melchior2017-11-121-2/+19
| | |
* | | fixes a bug reported in issue #155 (Javassist Incorrect Code when wrapping ↵chibash2017-11-153-1/+39
| | | | | | | | | | | | with try/catch)
* | | adds Modifier#isVarArgs()chibash2017-11-151-0/+6
| | |
* | | adds Modifier#isVarArgs()chibash2017-11-152-0/+14
| | |
* | | changes getDefinedPackage back to getPackage when Java is < 9.chibash2017-11-151-1/+10
| | |
* | | Merge pull request #159 from nickl-/scoped-poolShigeru Chiba2017-11-1514-71/+650
|\ \ \ | | | | | | | | Fixes to javassist.scopepool
| * | | Fixes to javassist.scopepoolnickl-2017-11-1214-71/+650
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-155-188/+815
|\ \ \ | | | | | | | | Secure privileged
| * | | Define parameters for returned iterator.nickl-2017-11-121-1/+1
| | | |