]> source.dussan.org Git - javassist.git/log
javassist.git
2 years agoMerge pull request #390 from derklaro/master
Shigeru Chiba [Tue, 10 May 2022 09:22:31 +0000 (18:22 +0900)]
Merge pull request #390 from derklaro/master

Lower requirement for an extra type in constructor to Java 7-

2 years agochanges test code because package java.rmi.activation.ActivationGroupDesc does not...
chibash [Tue, 10 May 2022 09:21:13 +0000 (18:21 +0900)]
changes test code because package java.rmi.activation.ActivationGroupDesc does not exist any longer.

2 years agodeletes src/test/test2/*.class
chibash [Tue, 10 May 2022 09:07:12 +0000 (18:07 +0900)]
deletes src/test/test2/*.class

2 years agoMerge pull request #399 from carldea/master
Shigeru Chiba [Tue, 10 May 2022 04:55:34 +0000 (13:55 +0900)]
Merge pull request #399 from carldea/master

Using TCK Tested JDK builds of OpenJDK

2 years agoMerge pull request #409 from aschleck/patch-1
Shigeru Chiba [Tue, 10 May 2022 04:42:33 +0000 (13:42 +0900)]
Merge pull request #409 from aschleck/patch-1

Remove redundant type check

2 years agoRemove redundant type check 409/head
April Schleck [Fri, 1 Apr 2022 04:35:37 +0000 (21:35 -0700)]
Remove redundant type check

The same condition is repeated twice (caught by FindBugs.)

3 years agoUsing TCK Tested JDK builds of OpenJDK 399/head
Carl Dea [Mon, 4 Oct 2021 13:47:25 +0000 (09:47 -0400)]
Using TCK Tested JDK builds of OpenJDK

The AdoptOpenJDK has been discontinued since July 2021. When using Zulu you get all the latest updated (TCK Tested) builds for all versions of OpenJDK.

Also added are fixed (major) release version(s) such as 11.0.3. This is often a good practice whenever a build/test triggers (push/pull events) this can determine if the latest JDK (11) had failed the build vs something in your code that caused it. For example, when building with JDK 11.0.3 (fixed version) the build passes (green) and JDK 11 fails (red) will mean that the latest JDK (11) was the cause and not your code.



Note: Other distributions such as Temurin do not support archived fixed release prior to Sept. 2021.

3 years agoMerge pull request #395 from aburaksahin/master
Shigeru Chiba [Tue, 21 Sep 2021 09:11:01 +0000 (18:11 +0900)]
Merge pull request #395 from aburaksahin/master

Fix for NullPointerException on detach()

3 years agoFix for NullPointerException on detach() 395/head
Burak Şahin [Tue, 21 Sep 2021 08:13:48 +0000 (11:13 +0300)]
Fix for NullPointerException on detach()

3 years agoLower requirement for an extra type in constructor to Java 7- 390/head
derklaro [Tue, 7 Sep 2021 17:22:36 +0000 (19:22 +0200)]
Lower requirement for an extra type in constructor to Java 7-

3 years agofixes GitHub Issue 378 (wrong link for apache license)
chibash [Wed, 30 Jun 2021 10:25:07 +0000 (19:25 +0900)]
fixes GitHub Issue 378 (wrong link for apache license)

3 years agoupdates javassist.Loader to exclude jdk.internal.
chibash [Thu, 13 May 2021 17:08:08 +0000 (02:08 +0900)]
updates javassist.Loader to exclude jdk.internal.

3 years agorelease 3.28.0-GA rel_3_28_0_ga
chibash [Fri, 7 May 2021 17:01:12 +0000 (02:01 +0900)]
release 3.28.0-GA

3 years agoAdd an action badge.
Shigeru Chiba [Thu, 6 May 2021 04:08:55 +0000 (13:08 +0900)]
Add an action badge.

3 years agoCreate maven.yml
Shigeru Chiba [Thu, 6 May 2021 03:52:43 +0000 (12:52 +0900)]
Create maven.yml

3 years agoupdates Readme.html since #305 has been fixed by PR #306
chibash [Sun, 25 Apr 2021 17:37:47 +0000 (02:37 +0900)]
updates Readme.html since #305 has been fixed by PR #306

3 years agoMerge pull request #306 from nschaefe/master
Shigeru Chiba [Sun, 25 Apr 2021 17:35:45 +0000 (02:35 +0900)]
Merge pull request #306 from nschaefe/master

fix issue 305: CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException

3 years agoupdates Readme.html since #363 has been mergeed
chibash [Sun, 25 Apr 2021 17:28:45 +0000 (02:28 +0900)]
updates Readme.html since #363 has been mergeed

3 years agoMerge pull request #363 from michalkurka/master
Shigeru Chiba [Sun, 25 Apr 2021 17:27:10 +0000 (02:27 +0900)]
Merge pull request #363 from michalkurka/master

Fix a race condition in CtClassType#getClassFile3

3 years agoupdates Readme.html since #350 has been fixed
chibash [Sun, 25 Apr 2021 17:18:48 +0000 (02:18 +0900)]
updates Readme.html since #350 has been fixed

3 years agoMerge pull request #351 from sgjesse/issue-350
Shigeru Chiba [Sun, 25 Apr 2021 17:13:44 +0000 (02:13 +0900)]
Merge pull request #351 from sgjesse/issue-350

This fixes Issue #350.
Check for extended frame type when updating StackMapTable offset.

3 years agoFix a race condition in CtClassType#getClassFile3 363/head
michalkurka [Wed, 17 Mar 2021 17:12:21 +0000 (13:12 -0400)]
Fix a race condition in CtClassType#getClassFile3

javassist fails to find a class when concurrently running process
compresses the class (converts classfile to raw bytes)

the idea of the fix is to make sure to only update rawClassfile and classfile
under lock in getClassFile3, all other places that modify classfile are
already synchronized

when reading the object state, we need to read under lock both classfile and
rawClassFile otherwise we might get an inconsistent state

3 years agofixes a security problem in pom.xml
chibash [Sat, 30 Jan 2021 02:16:52 +0000 (11:16 +0900)]
fixes a security problem in pom.xml

3 years agofixes typos for #357
chibash [Sat, 30 Jan 2021 02:05:23 +0000 (11:05 +0900)]
fixes typos for #357

3 years agoMerge pull request #357 from eshizhan/master
Shigeru Chiba [Sat, 30 Jan 2021 01:57:46 +0000 (10:57 +0900)]
Merge pull request #357 from eshizhan/master

add functions for getting the parameter names of method

3 years agoadd unit tests for LocalVariableAttribute.variableNameByIndex and MethodParametersAtt... 357/head
eshizhan [Fri, 29 Jan 2021 04:34:08 +0000 (12:34 +0800)]
add unit tests for LocalVariableAttribute.variableNameByIndex and MethodParametersAttribute.parameterName

3 years agoadd functions for getting the parameter names of method
eshizhan [Tue, 26 Jan 2021 09:39:20 +0000 (17:39 +0800)]
add functions for getting the parameter names of method

3 years agoCheck for extended frame type when updating StackTableOffset offset 351/head
Søren Gjesse [Mon, 14 Dec 2020 13:52:31 +0000 (14:52 +0100)]
Check for extended frame type when updating StackTableOffset offset

Fixes #350

4 years agofixes Issue #339
chibash [Fri, 16 Oct 2020 10:23:07 +0000 (19:23 +0900)]
fixes Issue #339

4 years agoupdates the version number
chibash [Mon, 13 Jul 2020 01:06:13 +0000 (10:06 +0900)]
updates the version number

4 years agofixes a bug of javassist.bytecode.stackmap, which was reported as Issue #328.
chibash [Mon, 13 Jul 2020 00:02:22 +0000 (09:02 +0900)]
fixes a bug of javassist.bytecode.stackmap, which was reported as Issue #328.

4 years agoMerge pull request #307 from sarxos/patch-1
Shigeru Chiba [Fri, 27 Mar 2020 03:06:43 +0000 (12:06 +0900)]
Merge pull request #307 from sarxos/patch-1

Fix typo in TypeChecker

4 years agoFix typo in TypeChecker 307/head
Bartosz Firyn [Thu, 26 Mar 2020 20:30:06 +0000 (21:30 +0100)]
Fix typo in TypeChecker

Should be "bad field access" not "bad filed access".

4 years agofix CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException 306/head
User [Tue, 24 Mar 2020 15:20:23 +0000 (16:20 +0100)]
fix CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException

4 years agoupdates Readme.html to mention how to release.
chibash [Thu, 19 Mar 2020 16:11:44 +0000 (01:11 +0900)]
updates Readme.html to mention how to release.

4 years agofor release 3.27.0-GA rel_3_27_0_ga
chibash [Wed, 18 Mar 2020 18:03:28 +0000 (03:03 +0900)]
for release 3.27.0-GA

4 years agofixes a bug involuved in Pull Request #294
chibash [Mon, 23 Dec 2019 16:02:05 +0000 (01:02 +0900)]
fixes a bug involuved in Pull Request #294

4 years agoMerge pull request #294 from junwen12221/master
Shigeru Chiba [Mon, 23 Dec 2019 13:58:38 +0000 (22:58 +0900)]
Merge pull request #294 from junwen12221/master

Supports parsing 'byte[] a = new byte[]{};'.  Only parsing is supported.  Javassist reports a not-supported error.

4 years agoMerge branch 'master' of github.com:jboss-javassist/javassist
chibash [Mon, 23 Dec 2019 09:35:13 +0000 (18:35 +0900)]
Merge branch 'master' of github.com:jboss-javassist/javassist

4 years agofixdes Issue #282
chibash [Mon, 23 Dec 2019 09:34:44 +0000 (18:34 +0900)]
fixdes Issue #282

4 years agoSupport parsing 'byte[] a = new byte[]{};' 294/head
cjw [Thu, 5 Dec 2019 13:15:55 +0000 (21:15 +0800)]
Support parsing 'byte[] a = new byte[]{};'

5 years agoMerge pull request #281 from diptadas/patch-1
Shigeru Chiba [Mon, 14 Oct 2019 10:25:09 +0000 (19:25 +0900)]
Merge pull request #281 from diptadas/patch-1

Fix instruction printer double constant

5 years agoFix instruction printer double constant 281/head
Dipta Das [Mon, 14 Oct 2019 04:21:11 +0000 (23:21 -0500)]
Fix instruction printer double constant

5 years agoupdates Readme.html
chibash [Fri, 11 Oct 2019 17:15:18 +0000 (02:15 +0900)]
updates Readme.html

5 years agoMerge pull request #279 from csobrinho/patch-1
Shigeru Chiba [Fri, 11 Oct 2019 17:08:33 +0000 (02:08 +0900)]
Merge pull request #279 from csobrinho/patch-1

Fix a bottleneck. If the jar entries is big, List.contains is O(n) an…

5 years agoFix a bottleneck. If the jar entries is big, List.contains is O(n) and very slow! 279/head
Carlos Sobrinho [Fri, 11 Oct 2019 01:30:37 +0000 (18:30 -0700)]
Fix a bottleneck. If the jar entries is big, List.contains is O(n) and very slow!

This is a continuation of #271 to speed up the 3.25/26 release. More details on the issue.

5 years agofor release 3.26.0-GA 3_26_0_ga rel_3_26_0_ga
chibash [Wed, 2 Oct 2019 15:21:30 +0000 (00:21 +0900)]
for release 3.26.0-GA

5 years agoadds CtClass#isKotlin() for PR #276
chibash [Mon, 23 Sep 2019 13:12:42 +0000 (22:12 +0900)]
adds CtClass#isKotlin() for PR #276

5 years agofixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275
chibash [Sun, 22 Sep 2019 16:32:27 +0000 (01:32 +0900)]
fixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275

5 years agoadds CtBehavior#insertAfter(String,boolean,boolean) for Issue #275
chibash [Fri, 20 Sep 2019 14:20:39 +0000 (23:20 +0900)]
adds CtBehavior#insertAfter(String,boolean,boolean) for Issue #275

5 years agofixes Issue #271
chibash [Sun, 1 Sep 2019 16:08:17 +0000 (01:08 +0900)]
fixes Issue #271

5 years agoupdates Readme.html
chibash [Sun, 1 Sep 2019 15:30:49 +0000 (00:30 +0900)]
updates Readme.html

5 years agoMerge pull request #267 from sam-ma/master
Shigeru Chiba [Sun, 1 Sep 2019 15:27:11 +0000 (00:27 +0900)]
Merge pull request #267 from sam-ma/master

Fix #265 javassist.CannotCompileException: [source error] the called …

5 years agoadds ClassFileWriter#addDynamicInfo
chibash [Sun, 1 Sep 2019 15:21:32 +0000 (00:21 +0900)]
adds ClassFileWriter#addDynamicInfo

5 years agofixes typos included in PR #272 (Issue #270)
chibash [Sun, 1 Sep 2019 08:32:52 +0000 (17:32 +0900)]
fixes typos included in PR #272 (Issue #270)

5 years agoMerge pull request #272 from richbolen/JASSIST-270
Shigeru Chiba [Sat, 31 Aug 2019 16:21:10 +0000 (01:21 +0900)]
Merge pull request #272 from richbolen/JASSIST-270

JASSIST-270:  Add support for the new Dynamic constant (17) created in java 11

5 years agoRemove unused file 272/head
Rich Bolen [Fri, 30 Aug 2019 10:03:16 +0000 (06:03 -0400)]
Remove unused file

5 years agoAddress feedback from PR
Rich Bolen [Wed, 28 Aug 2019 14:38:17 +0000 (10:38 -0400)]
Address feedback from PR

5 years agoIncorporate feedback from the PR
Rich Bolen [Tue, 27 Aug 2019 11:55:06 +0000 (07:55 -0400)]
Incorporate feedback from the PR

5 years agoIncorporate feedback from the PR
Rich Bolen [Tue, 27 Aug 2019 11:46:39 +0000 (07:46 -0400)]
Incorporate feedback from the PR

5 years agoIncorporate feedback from the PR
Rich Bolen [Tue, 27 Aug 2019 11:45:10 +0000 (07:45 -0400)]
Incorporate feedback from the PR

5 years agoAdd support for the new Dynamic constant (17) created in java 11
Rich Bolen [Tue, 20 Aug 2019 14:52:01 +0000 (10:52 -0400)]
Add support for the new Dynamic constant (17) created in java 11

5 years agofixed Issue #263
chibash [Sat, 27 Jul 2019 05:06:22 +0000 (14:06 +0900)]
fixed Issue #263

5 years agoFix #265 javassist.CannotCompileException: [source error] the called constructor... 267/head
Sam Ma [Tue, 23 Jul 2019 11:35:24 +0000 (21:35 +1000)]
Fix #265 javassist.CannotCompileException: [source error] the called constructor is private

5 years agoMerge pull request #264 from backpaper0/fix-typo
Shigeru Chiba [Thu, 4 Jul 2019 03:12:24 +0000 (12:12 +0900)]
Merge pull request #264 from backpaper0/fix-typo

Fix typo

5 years agoFix typo 264/head
Uragami Taichi [Wed, 3 Jul 2019 21:17:22 +0000 (06:17 +0900)]
Fix typo

5 years agofor release 3.25.0-GA rel_3_25_0_ga
chibash [Mon, 15 Apr 2019 16:35:06 +0000 (01:35 +0900)]
for release 3.25.0-GA

5 years agofor release 3.25.0-GA
chibash [Mon, 15 Apr 2019 16:33:33 +0000 (01:33 +0900)]
for release 3.25.0-GA

5 years agoMerge pull request #253 from sam-ma/master
Shigeru Chiba [Mon, 15 Apr 2019 16:09:18 +0000 (01:09 +0900)]
Merge pull request #253 from sam-ma/master

Fix #252 make instrumentation works on JDK11 for the inner class which has access to the private constructor of the host class

5 years agoMerge pull request #254 from soul2zimate/backwards-compatible-fix
Shigeru Chiba [Mon, 8 Apr 2019 09:07:31 +0000 (18:07 +0900)]
Merge pull request #254 from soul2zimate/backwards-compatible-fix

Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, Prot…

5 years agoAdd back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, ProtectionDomain... 254/head
Chao Wang [Mon, 25 Mar 2019 03:34:00 +0000 (11:34 +0800)]
Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, ProtectionDomain domain) for backward compatibility in minor release.

5 years agoFix #252 make instrumentation works on JDK11 for the inner class which has access... 253/head
Sam Ma [Wed, 20 Mar 2019 02:08:43 +0000 (13:08 +1100)]
Fix #252 make instrumentation works on JDK11 for the inner class which has access to the private constructor of the host class

5 years agoadds javadoc comments for PR #250
chibash [Sun, 17 Mar 2019 13:57:29 +0000 (22:57 +0900)]
adds javadoc comments for PR #250

5 years agoMerge pull request #250 from skybber/master
Shigeru Chiba [Sun, 17 Mar 2019 13:26:08 +0000 (22:26 +0900)]
Merge pull request #250 from skybber/master

Control ctxClassLoader usage per thread

5 years agoControl ctxClassLoader usage per thread 250/head
skybber [Sun, 17 Mar 2019 08:26:09 +0000 (09:26 +0100)]
Control ctxClassLoader usage per thread

5 years agoMerge pull request #247 from NingZhang-e/issue246
Shigeru Chiba [Tue, 12 Feb 2019 13:23:50 +0000 (22:23 +0900)]
Merge pull request #247 from NingZhang-e/issue246

Clean Java doc to fix #246

5 years agoFix Issue #246 via clean java doc. 247/head
enigzhg [Tue, 12 Feb 2019 03:55:10 +0000 (11:55 +0800)]
Fix Issue #246 via clean java doc.

5 years agoMerge pull request #3 from jboss-javassist/master
Ning Zhang [Tue, 12 Feb 2019 03:19:33 +0000 (11:19 +0800)]
Merge pull request #3 from jboss-javassist/master

Sync with base/master.

5 years agoupdates Readme.html and rebuilds javassist.jar
chibash [Sat, 2 Feb 2019 02:40:36 +0000 (11:40 +0900)]
updates Readme.html and rebuilds javassist.jar

5 years agoMerge pull request #244 from shifujun/redirectMethodCallToStatic
Shigeru Chiba [Sat, 2 Feb 2019 02:36:46 +0000 (11:36 +0900)]
Merge pull request #244 from shifujun/redirectMethodCallToStatic

add a useful CodeConverter method:redirectMethodCallToStatic

5 years agoadd a new CodeConverter method:redirectMethodCallToStatic 244/head
shifujun [Fri, 1 Feb 2019 09:26:07 +0000 (17:26 +0800)]
add a new CodeConverter method:redirectMethodCallToStatic

5 years agofixes the bug reported in Issue #241.
chibash [Sun, 27 Jan 2019 16:35:21 +0000 (01:35 +0900)]
fixes the bug reported in Issue #241.
It makes $r available in the code given to CtBehavior#insertBefore().

5 years agoadds src/test/test5/SwitchCase.java. It also adds the javadoc comments.
chibash [Sun, 27 Jan 2019 10:35:24 +0000 (19:35 +0900)]
adds src/test/test5/SwitchCase.java. It also adds the javadoc comments.

5 years agoMerge pull request #243 from michalkurka/michalk_fix-j11-race
Shigeru Chiba [Sun, 27 Jan 2019 09:46:23 +0000 (18:46 +0900)]
Merge pull request #243 from michalkurka/michalk_fix-j11-race

JAVASSIST-242: Demonstrates a race condition in DefineClassHelper + proposed fix

5 years agoProposed fixes in DefineClassHelper & DefinePackageHelper 243/head
michalkurka [Fri, 25 Jan 2019 19:30:06 +0000 (11:30 -0800)]
Proposed fixes in DefineClassHelper & DefinePackageHelper

Don't try to clean-up after making a protected-final method accessible.
No synchronization with concurrent access can cause errors.

5 years agoJAVASSIST-242: Demonstrates a race condition in DefineClassHelper
michalkurka [Fri, 25 Jan 2019 19:28:06 +0000 (11:28 -0800)]
JAVASSIST-242: Demonstrates a race condition in DefineClassHelper

5 years agochanges Readme.html
chibash [Tue, 11 Dec 2018 06:43:33 +0000 (15:43 +0900)]
changes Readme.html

5 years agoMerge pull request #231 from jboss-javassist/test/switch-case
Shigeru Chiba [Tue, 11 Dec 2018 06:37:11 +0000 (15:37 +0900)]
Merge pull request #231 from jboss-javassist/test/switch-case

Supporting switch-case statements with string constants.

5 years agoupdates Readme.html test/switch-case 231/head
chibash [Sun, 9 Dec 2018 15:32:16 +0000 (00:32 +0900)]
updates Readme.html

5 years agoenables switch-case with string constants
chibash [Sun, 9 Dec 2018 15:24:19 +0000 (00:24 +0900)]
enables switch-case with string constants

5 years agoupdates for relase 3.24.1 rel_3_24_1_ga
chibash [Sun, 9 Dec 2018 10:58:26 +0000 (19:58 +0900)]
updates for relase 3.24.1

5 years agofixes another bug (supporting jdk.*) reported in #228
chibash [Thu, 6 Dec 2018 02:01:55 +0000 (11:01 +0900)]
fixes another bug (supporting jdk.*) reported in #228

5 years agoMerge pull request #2 from jboss-javassist/master
Ning Zhang [Tue, 4 Dec 2018 16:36:51 +0000 (17:36 +0100)]
Merge pull request #2 from jboss-javassist/master

Sync with master /jboss-javassist/javassist/.

5 years agofixes a bug reported in #228
chibash [Tue, 4 Dec 2018 15:19:56 +0000 (00:19 +0900)]
fixes a bug reported in #228

5 years agomodifies build.xml to support JDK 7.
chibash [Fri, 30 Nov 2018 06:41:39 +0000 (15:41 +0900)]
modifies build.xml to support JDK 7.

5 years agoMerge pull request #230 from JCgH4164838Gh792C124B5/localJavassistBranch
Shigeru Chiba [Fri, 30 Nov 2018 06:38:37 +0000 (15:38 +0900)]
Merge pull request #230 from JCgH4164838Gh792C124B5/localJavassistBranch

Re-enable JDK7 runtime compatibility for Javassist 3.x

5 years agoRe-enable JDK7 runtime compatibility for Javassist 3.x (until source changes preclude... 230/head
JCgH4164838Gh792C124B5 [Fri, 30 Nov 2018 05:54:00 +0000 (00:54 -0500)]
Re-enable JDK7 runtime compatibility for Javassist 3.x (until source changes preclude it).
pom.xml changes:
- lower compile source/target to 1.7 (from 1.8, introduced with Javassist 3.24.0)

5 years agoMerge pull request #1 from jboss-javassist/master
Ning Zhang [Fri, 2 Nov 2018 02:11:18 +0000 (10:11 +0800)]
Merge pull request #1 from jboss-javassist/master

Sync with jboss-javassist/javassist.

5 years agofixes bugs in javadoc comments
chibash [Thu, 1 Nov 2018 16:49:10 +0000 (01:49 +0900)]
fixes bugs in javadoc comments

5 years agoadds javassist.jar for test code rel_3_24_0_ga
chibash [Thu, 1 Nov 2018 03:54:28 +0000 (12:54 +0900)]
adds javassist.jar for test code