]> source.dussan.org Git - javassist.git/log
javassist.git
7 weeks agoadds LineNumberTest.java to the test suite master
chibash [Thu, 3 Oct 2024 15:32:22 +0000 (00:32 +0900)]
adds LineNumberTest.java to the test suite

7 weeks agoMerge pull request #492 from kuznet1/master
Shigeru Chiba [Thu, 3 Oct 2024 15:24:58 +0000 (00:24 +0900)]
Merge pull request #492 from kuznet1/master

Fix wrong line numbers in some cases

7 weeks agoMerge pull request #491 from jbellenger/jbellenger-multiple-nested-classes
Shigeru Chiba [Sun, 29 Sep 2024 06:01:47 +0000 (15:01 +0900)]
Merge pull request #491 from jbellenger/jbellenger-multiple-nested-classes

reduced InnerClasses propagation

7 weeks agoAdd test for 16th line & fix 492/head
akuznetsov [Sat, 28 Sep 2024 18:06:53 +0000 (22:06 +0400)]
Add test for 16th line & fix

2 months agoinit 491/head
James Bellenger [Tue, 17 Sep 2024 20:09:36 +0000 (13:09 -0700)]
init

3 months agoupdates Changes.md for PR #486
chibash [Fri, 26 Jul 2024 10:30:58 +0000 (19:30 +0900)]
updates Changes.md for PR #486

3 months agoMerge pull request #486 from catsalty/master
Shigeru Chiba [Fri, 26 Jul 2024 10:29:07 +0000 (19:29 +0900)]
Merge pull request #486 from catsalty/master

[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic

3 months agoMerge pull request #1 from catsalty/catsalty-patch-1 486/head
catsalty [Thu, 25 Jul 2024 11:17:02 +0000 (19:17 +0800)]
Merge pull request #1 from catsalty/catsalty-patch-1

[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic

3 months ago[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic
catsalty [Thu, 25 Jul 2024 11:16:23 +0000 (19:16 +0800)]
[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic

Replacing invokeinterface or invokedynamic with invokestatic will result in a missing instruction. This solution can fix the problem.
Reference document:
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokestatic
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokedynamic
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokeinterface

6 months agoupdates testJIRA150 since it sometimes fails
chibash [Fri, 3 May 2024 13:20:31 +0000 (22:20 +0900)]
updates testJIRA150 since it sometimes fails

6 months agoMerge pull request #484 from kuznet1/master
Shigeru Chiba [Fri, 3 May 2024 10:01:47 +0000 (19:01 +0900)]
Merge pull request #484 from kuznet1/master

Line numbers support

6 months agoMerge pull request #480 from likey3/master
Shigeru Chiba [Fri, 3 May 2024 09:57:34 +0000 (18:57 +0900)]
Merge pull request #480 from likey3/master

support bootstrap method coping when using code coping

10 months agosupport bootstrap method coping when using code coping 480/head
LiuChuliang 刘楚梁 [Thu, 18 Jan 2024 08:11:16 +0000 (16:11 +0800)]
support bootstrap method coping when using code coping

10 months agoMerge pull request #477 from oldratlee/improve-pom
Shigeru Chiba [Sun, 31 Dec 2023 01:07:03 +0000 (10:07 +0900)]
Merge pull request #477 from oldratlee/improve-pom

improve pom

10 months agoimprove pom 477/head
Jerry Lee [Sat, 30 Dec 2023 10:53:14 +0000 (18:53 +0800)]
improve pom

- add `inceptionYear` element, and use it in `copyright bottom`
- add missing version declaration for `maven-gpg-plugin`
  more stable build and fix related warning message
- add `maven-enforcer-plugin`
  more straightforward error message when `maven`/`java` version is not satisfied

10 months agoline numbers for undefined ids & more 484/head
akuznetsov [Fri, 29 Dec 2023 13:29:28 +0000 (17:29 +0400)]
line numbers for undefined ids & more

11 months ago3.30.2-GA release rel_3_30_2_ga
chibash [Sun, 24 Dec 2023 16:28:37 +0000 (01:28 +0900)]
3.30.2-GA release

11 months agoMerge pull request #476 from oldratlee/dev/polish-pom
Shigeru Chiba [Sun, 24 Dec 2023 07:06:28 +0000 (16:06 +0900)]
Merge pull request #476 from oldratlee/dev/polish-pom

polish pom format

11 months agopolish pom format 476/head
Jerry Lee [Sun, 24 Dec 2023 05:13:54 +0000 (13:13 +0800)]
polish pom format

- reorder pom elements
  - sort `GAV` elements together
  - bring user concerned info(e.g. licenses) forward
  - bring dev concerned basic info(e.g. dependencies) before profiles
- use `https` instead of `http` for URLs
- change whitespace tabs to spaces for consistency

11 months agoMerge pull request #475 from oldratlee/add-editor-config
Shigeru Chiba [Fri, 22 Dec 2023 17:04:56 +0000 (02:04 +0900)]
Merge pull request #475 from oldratlee/add-editor-config

add `.editorconfig`

11 months agoadd `.editorconfig` 475/head
Jerry Lee [Fri, 22 Dec 2023 11:38:10 +0000 (19:38 +0800)]
add `.editorconfig`

ease the view and edit settings of the editor/IDE

more info see https://editorconfig.org/

11 months agoMerge pull request #473 from shifujun/fix_bytecode_version
Shigeru Chiba [Thu, 21 Dec 2023 14:57:01 +0000 (23:57 +0900)]
Merge pull request #473 from shifujun/fix_bytecode_version

Fix bytecode compatible back to 52(JDK8)

11 months agoFix bytecode compatible back to 52(JDK8) 473/head
shifujun [Mon, 18 Dec 2023 08:39:09 +0000 (16:39 +0800)]
Fix bytecode compatible back to 52(JDK8)

This project need JDK 11 to compile, but target to JDK 8.

IDEA need uncheck "use --release" in Preferences |
Build, Execution, Deployment | Compiler | Java Compiler
, to build success.

fix #470

11 months agoMerge pull request #472 from merks/issue-471
Shigeru Chiba [Sun, 17 Dec 2023 14:07:13 +0000 (23:07 +0900)]
Merge pull request #472 from merks/issue-471

Use current latest org.apache.felix:maven-bundle-plugin:5.1.9

11 months agofixes github issue #471 rel_3_30_1_ga
chibash [Sun, 17 Dec 2023 14:04:10 +0000 (23:04 +0900)]
fixes github issue #471

11 months agoUse current latest org.apache.felix:maven-bundle-plugin:5.1.9 472/head
Ed Merks [Sun, 17 Dec 2023 13:15:41 +0000 (14:15 +0100)]
Use current latest org.apache.felix:maven-bundle-plugin:5.1.9

https://github.com/jboss-javassist/javassist/issues/471

11 months ago3.30.0-GA release rel_3_30_0_ga
chibash [Sat, 16 Dec 2023 15:47:57 +0000 (00:47 +0900)]
3.30.0-GA release

11 months agoMerge pull request #470 from shifujun/repair_IDEA
Shigeru Chiba [Sat, 16 Dec 2023 13:12:35 +0000 (22:12 +0900)]
Merge pull request #470 from shifujun/repair_IDEA

Minimal changes make IDEA 2023.2 work out-of-box

11 months agoMerge pull request #469 from shifujun/insertAuxInitializer_stacksize
Shigeru Chiba [Sat, 16 Dec 2023 13:04:12 +0000 (22:04 +0900)]
Merge pull request #469 from shifujun/insertAuxInitializer_stacksize

Fix insertAuxInitializer may cause inconsistent stack height problem

11 months agoMerge pull request #468 from vimfun/patch-1
Shigeru Chiba [Sat, 16 Dec 2023 13:02:41 +0000 (22:02 +0900)]
Merge pull request #468 from vimfun/patch-1

Update tutorial.html: `javassist.util.HotSwapper`

11 months agoMinimal changes make IDEA 2023.2 work out-of-box 470/head
shifujun [Tue, 12 Dec 2023 06:10:23 +0000 (14:10 +0800)]
Minimal changes make IDEA 2023.2 work out-of-box

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.

11 months agoFix insertAuxInitializer may cause inconsistent stack height problem 469/head
shifujun [Mon, 11 Dec 2023 09:52:52 +0000 (17:52 +0800)]
Fix insertAuxInitializer may cause inconsistent stack height problem

Usually, constructor only load super class's constructor's init params into stack.
After this() or super() called, stack will be empty. If so, we insertAuxInitializer
right after this() or super() can reuse max stack size if it enough.

But, there is some weird class out there, their constructors load all in-constructor
init field value into stack before this() or super() call. In this case,
after this() or super() call, stack is not empty, even maybe full.

In summary, insertAuxInitializer should increase MaxStack anyway.

11 months agoUpdate tutorial.html: `javassist.util.HotSwapper` 468/head
⸮o-o ? 林 [Mon, 11 Dec 2023 07:19:07 +0000 (15:19 +0800)]
Update tutorial.html: `javassist.util.HotSwapper`

The code path is fixed.

11 months agoMerge pull request #467 from shifujun/453
Shigeru Chiba [Sat, 9 Dec 2023 15:49:49 +0000 (00:49 +0900)]
Merge pull request #467 from shifujun/453

Remove DUP check in TransformNewClass

11 months agoMerge pull request #448 from catsalty/patch-2
Shigeru Chiba [Sat, 9 Dec 2023 15:48:42 +0000 (00:48 +0900)]
Merge pull request #448 from catsalty/patch-2

Fix issue in no-standard [new] instruction replace

11 months agoMerge pull request #466 from shifujun/pr-fix-lookupMethod
Shigeru Chiba [Sat, 9 Dec 2023 15:47:26 +0000 (00:47 +0900)]
Merge pull request #466 from shifujun/pr-fix-lookupMethod

Fix MemberResolver.lookupMethod bug when super class has more precise…

11 months agoRemove DUP check in TransformNewClass 467/head
shifujun [Fri, 8 Dec 2023 13:36:45 +0000 (21:36 +0800)]
Remove DUP check in TransformNewClass

DUP usually come after NEW, but not necessary.

#453

11 months agoFix MemberResolver.lookupMethod bug when super class has more precise match 466/head
shifujun [Fri, 8 Dec 2023 06:48:28 +0000 (14:48 +0800)]
Fix MemberResolver.lookupMethod bug when super class has more precise match

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.

11 months agoMerge pull request #463 from wuwen5/java21-inner-class
Shigeru Chiba [Mon, 4 Dec 2023 09:49:40 +0000 (18:49 +0900)]
Merge pull request #463 from wuwen5/java21-inner-class

fixes Issue 462 (In Java21, the ConstPool API throws NPE for MethodParameters attributes without parameter names)

12 months agofixes GitHub Issue 462 (Internal class issues in the Java 21) 463/head
wuwen [Sun, 8 Oct 2023 08:31:26 +0000 (16:31 +0800)]
fixes GitHub Issue 462 (Internal class issues in the Java 21)

12 months agofix line numbers in blocks & refactor test
akuznetsov [Thu, 2 Nov 2023 11:59:48 +0000 (15:59 +0400)]
fix line numbers in blocks & refactor test

13 months agosave line number count though all methods/ctors
akuznetsov [Wed, 4 Oct 2023 10:22:28 +0000 (14:22 +0400)]
save line number count though all methods/ctors

13 months agoadd line numbers and test
akuznetsov [Tue, 26 Sep 2023 11:57:53 +0000 (15:57 +0400)]
add line numbers and test

20 months agoFix issue in no-standard [new] instruction replace 448/head
LayHool [Thu, 16 Mar 2023 03:01:40 +0000 (11:01 +0800)]
Fix issue in no-standard [new] instruction replace

A standard *new* construct bytecode will generate like:

```
new okhttp3/OkHttpClient
dup
invokespecial okhttp3/OkHttpClient <init> ()V
astore 1
```

but a few part of compiler will generate no-standard bytecode like:

```
new okhttp3/OkHttpClient
dup
astore 1
invokespecial okhttp3/OkHttpClient <init> ()V
```
which will cause javassist build stack error.

This commit will fix it

2 years agoUpdate README.md
Shigeru Chiba [Sun, 2 Oct 2022 15:49:13 +0000 (00:49 +0900)]
Update README.md

2 years agoMerge pull request #434 from fanofxiaofeng/patch-1
Shigeru Chiba [Sun, 2 Oct 2022 15:48:27 +0000 (00:48 +0900)]
Merge pull request #434 from fanofxiaofeng/patch-1

try to fix trivial link error

2 years agotry to fix trivial link error 434/head
靳阳 [Sun, 2 Oct 2022 15:04:42 +0000 (23:04 +0800)]
try to fix trivial link error

try to fix trivial link error

2 years agoupdates javassist.jar for 3.29.2-GA. rel_3_29_2_ga
chibash [Tue, 13 Sep 2022 21:19:11 +0000 (06:19 +0900)]
updates javassist.jar for 3.29.2-GA.

2 years agoprepares a new release
chibash [Tue, 13 Sep 2022 20:48:02 +0000 (05:48 +0900)]
prepares a new release

2 years agoMerge pull request #427 from dakusui/master-issue-426_includeAutomaticModuleNameInMan...
Shigeru Chiba [Sun, 11 Sep 2022 00:16:04 +0000 (09:16 +0900)]
Merge pull request #427 from dakusui/master-issue-426_includeAutomaticModuleNameInManifestMf

Includes Automatic-Module-Name in MANIFEST.MF

2 years agoIssue-#426 Format a line in the pom.xml. 427/head
Hiroshi Ukai [Mon, 29 Aug 2022 21:28:35 +0000 (06:28 +0900)]
Issue-#426 Format a line in the pom.xml.

2 years agoIssue-#426 Include Automatic-Module-Name in MANIFEST.MF and bump up the version to...
Hiroshi Ukai [Mon, 29 Aug 2022 21:09:37 +0000 (06:09 +0900)]
Issue-#426 Include Automatic-Module-Name in MANIFEST.MF and bump up the version to 3.29.2-GA

2 years agoupdates README.md
chibash [Thu, 11 Aug 2022 16:23:50 +0000 (01:23 +0900)]
updates README.md

2 years agoadds Issue #423 to Changes.md
chibash [Thu, 11 Aug 2022 16:13:42 +0000 (01:13 +0900)]
adds Issue #423 to Changes.md

2 years agofor releasing 3.29.1 rel_3_29_1_ga
chibash [Thu, 11 Aug 2022 15:17:58 +0000 (00:17 +0900)]
for releasing 3.29.1

2 years agoprohibits too many items from being added to a constant pool.
chibash [Sat, 6 Aug 2022 19:06:50 +0000 (04:06 +0900)]
prohibits too many items from being added to a constant pool.
the previous commit was wrong.

2 years agoprohibits too many items from being added to a constant pool
chibash [Sat, 6 Aug 2022 18:01:40 +0000 (03:01 +0900)]
prohibits too many items from being added to a constant pool

2 years agoupdates Changes.md to note Issue #414
chibash [Wed, 18 May 2022 13:25:12 +0000 (22:25 +0900)]
updates Changes.md to note Issue #414

2 years agofixes typos in *.md
chibash [Tue, 17 May 2022 04:09:44 +0000 (13:09 +0900)]
fixes typos in *.md

2 years agoremoves Readme.html and adds Changes.md and Examples.md
chibash [Tue, 17 May 2022 04:05:58 +0000 (13:05 +0900)]
removes Readme.html and adds Changes.md and Examples.md

2 years agoprepares for 3.29.0-GA release rel_3_29_0_ga
chibash [Fri, 13 May 2022 13:58:52 +0000 (22:58 +0900)]
prepares for 3.29.0-GA release

2 years agoremoves an unused import declaration as PR 384 mentions.
chibash [Thu, 12 May 2022 17:49:08 +0000 (02:49 +0900)]
removes an unused import declaration as PR 384 mentions.

2 years agoMerge pull request #382 from tim-hoffman/PR_RemoveStringBuffer
Shigeru Chiba [Thu, 12 May 2022 17:45:42 +0000 (02:45 +0900)]
Merge pull request #382 from tim-hoffman/PR_RemoveStringBuffer

Replace StringBuffer with StringBuilder, other minor String optimizations

2 years agoMerge pull request #383 from tim-hoffman/PR_ArrayCopyPerformance
Shigeru Chiba [Thu, 12 May 2022 17:41:05 +0000 (02:41 +0900)]
Merge pull request #383 from tim-hoffman/PR_ArrayCopyPerformance

Replace array copy loops with System.arraycopy

2 years agouncomments test code suggested by PR405
chibash [Thu, 12 May 2022 17:39:03 +0000 (02:39 +0900)]
uncomments test code suggested by PR405

2 years agocancels PR#391, which does not pass all the tests
chibash [Thu, 12 May 2022 17:32:49 +0000 (02:32 +0900)]
cancels PR#391, which does not pass all the tests

2 years agofixes a wrong indentation
chibash [Thu, 12 May 2022 17:25:44 +0000 (02:25 +0900)]
fixes a wrong indentation

2 years agoMerge pull request #391 from derklaro/fix-method-naming-syntax
Shigeru Chiba [Thu, 12 May 2022 17:24:13 +0000 (02:24 +0900)]
Merge pull request #391 from derklaro/fix-method-naming-syntax

Only wrap the method name if the method doesn't come from the same declaring class

2 years agodoes refactoring
chibash [Thu, 12 May 2022 17:15:47 +0000 (02:15 +0900)]
does refactoring

2 years agofixes a bug in SignatureAttribute.renameClass().
chibash [Thu, 12 May 2022 16:33:19 +0000 (01:33 +0900)]
fixes a bug in SignatureAttribute.renameClass().

2 years agofixs a compilation problem although one test still fails.
chibash [Wed, 11 May 2022 15:50:44 +0000 (00:50 +0900)]
fixs a compilation problem although one test still fails.

2 years agoMerge pull request #299 from pietrobraione/master
Shigeru Chiba [Wed, 11 May 2022 15:42:15 +0000 (00:42 +0900)]
Merge pull request #299 from pietrobraione/master

Fix renaming of classes in presence of generic signatures and nested classes.
This pull request has some problems but I'll fix them later.

2 years agoMerge branch 'master' into master 299/head
Shigeru Chiba [Tue, 10 May 2022 16:54:28 +0000 (01:54 +0900)]
Merge branch 'master' into master

2 years agoMerge pull request #278 from ximsfei/master
Shigeru Chiba [Tue, 10 May 2022 10:54:48 +0000 (19:54 +0900)]
Merge pull request #278 from ximsfei/master

fixes a bug of ClassFile#renameClass(), some imports could not be successfully renamed.

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 agoOnly wrap the method name if the method doesn't come from the same decl class 391/head
derklaro [Tue, 7 Sep 2021 19:44:24 +0000 (21:44 +0200)]
Only wrap the method name if the method doesn't come from the same decl class

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 agoReplace array copy loop with System.arraycopy 383/head
Timothy Hoffman [Fri, 16 Jul 2021 18:29:45 +0000 (13:29 -0500)]
Replace array copy loop with System.arraycopy

3 years agoReplace remaining StringBuffer uses with StringBuilder 382/head
Timothy Hoffman [Fri, 16 Jul 2021 15:59:01 +0000 (10:59 -0500)]
Replace remaining StringBuffer uses with StringBuilder

3 years agoReplace StringBuffer with StringBuilder and other minor String optimizations
Timothy Hoffman [Fri, 16 Jul 2021 15:55:33 +0000 (10:55 -0500)]
Replace StringBuffer with StringBuilder and other minor String optimizations

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