Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #492 from kuznet1/master | Shigeru Chiba | 2024-10-04 | 1 | -7/+7 |
|\ | | | | | Fix wrong line numbers in some cases | ||||
| * | Add test for 16th line & fix | akuznetsov | 2024-09-28 | 1 | -7/+7 |
| | | |||||
* | | init | James Bellenger | 2024-09-17 | 1 | -3/+6 |
|/ | |||||
* | [bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic | catsalty | 2024-07-25 | 1 | -0/+3 |
| | | | | | | | 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 | ||||
* | Merge pull request #484 from kuznet1/master | Shigeru Chiba | 2024-05-03 | 47 | -476/+863 |
|\ | | | | | Line numbers support | ||||
| * | line numbers for undefined ids & more | akuznetsov | 2023-12-29 | 14 | -175/+175 |
| | | |||||
| * | fix line numbers in blocks & refactor test | akuznetsov | 2023-11-02 | 1 | -5/+13 |
| | | |||||
| * | save line number count though all methods/ctors | akuznetsov | 2023-10-04 | 5 | -2/+19 |
| | | |||||
| * | add line numbers and test | akuznetsov | 2023-10-04 | 37 | -300/+662 |
| | | |||||
* | | support bootstrap method coping when using code coping | LiuChuliang 刘楚梁 | 2024-01-18 | 2 | -30/+222 |
| | | |||||
* | | 3.30.2-GA releaserel_3_30_2_ga | chibash | 2023-12-25 | 1 | -1/+1 |
| | | |||||
* | | fixes github issue #471rel_3_30_1_ga | chibash | 2023-12-17 | 1 | -1/+1 |
| | | |||||
* | | 3.30.0-GA releaserel_3_30_0_ga | chibash | 2023-12-17 | 1 | -2/+2 |
| | | |||||
* | | Fix insertAuxInitializer may cause inconsistent stack height problem | shifujun | 2023-12-11 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge pull request #467 from shifujun/453 | Shigeru Chiba | 2023-12-10 | 1 | -3/+0 |
|\ \ | | | | | | | Remove DUP check in TransformNewClass | ||||
| * | | Remove DUP check in TransformNewClass | shifujun | 2023-12-08 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | | | DUP usually come after NEW, but not necessary. #453 | ||||
* | | | Merge pull request #448 from catsalty/patch-2 | Shigeru Chiba | 2023-12-10 | 1 | -1/+14 |
|\ \ \ | | | | | | | | | Fix issue in no-standard [new] instruction replace | ||||
| * | | | Fix issue in no-standard [new] instruction replace | LayHool | 2023-03-16 | 1 | -1/+14 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | | Fix MemberResolver.lookupMethod bug when super class has more precise match | shifujun | 2023-12-08 | 1 | -9/+16 |
| |/ |/| | | | | | | | | | | | 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) | wuwen | 2023-11-03 | 1 | -3/+6 |
|/ | |||||
* | Issue-#426 Include Automatic-Module-Name in MANIFEST.MF and bump up the ↵ | Hiroshi Ukai | 2022-08-30 | 1 | -1/+1 |
| | | | | version to 3.29.2-GA | ||||
* | for releasing 3.29.1rel_3_29_1_ga | chibash | 2022-08-12 | 1 | -1/+1 |
| | |||||
* | prohibits too many items from being added to a constant pool. | chibash | 2022-08-07 | 1 | -1/+1 |
| | | | | the previous commit was wrong. | ||||
* | prohibits too many items from being added to a constant pool | chibash | 2022-08-07 | 1 | -0/+3 |
| | |||||
* | prepares for 3.29.0-GA releaserel_3_29_0_ga | chibash | 2022-05-13 | 1 | -2/+2 |
| | |||||
* | removes an unused import declaration as PR 384 mentions. | chibash | 2022-05-13 | 1 | -1/+0 |
| | |||||
* | Merge pull request #382 from tim-hoffman/PR_RemoveStringBuffer | Shigeru Chiba | 2022-05-13 | 35 | -118/+121 |
|\ | | | | | Replace StringBuffer with StringBuilder, other minor String optimizations | ||||
| * | Replace remaining StringBuffer uses with StringBuilder | Timothy Hoffman | 2021-07-16 | 1 | -15/+15 |
| | | |||||
| * | Replace StringBuffer with StringBuilder and other minor String optimizations | Timothy Hoffman | 2021-07-16 | 35 | -103/+106 |
| | | |||||
* | | Merge pull request #383 from tim-hoffman/PR_ArrayCopyPerformance | Shigeru Chiba | 2022-05-13 | 2 | -5/+10 |
|\ \ | | | | | | | Replace array copy loops with System.arraycopy | ||||
| * | | Replace array copy loop with System.arraycopy | Timothy Hoffman | 2021-07-16 | 2 | -5/+10 |
| |/ | |||||
* | | cancels PR#391, which does not pass all the tests | chibash | 2022-05-13 | 1 | -3/+2 |
| | | |||||
* | | fixes a wrong indentation | chibash | 2022-05-13 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #391 from derklaro/fix-method-naming-syntax | Shigeru Chiba | 2022-05-13 | 1 | -2/+3 |
|\ \ | | | | | | | Only wrap the method name if the method doesn't come from the same declaring class | ||||
| * | | Only wrap the method name if the method doesn't come from the same decl class | derklaro | 2021-09-07 | 1 | -2/+3 |
| |/ | |||||
* | | does refactoring | chibash | 2022-05-13 | 1 | -92/+130 |
| | | |||||
* | | fixes a bug in SignatureAttribute.renameClass(). | chibash | 2022-05-13 | 1 | -44/+76 |
| | | |||||
* | | Merge branch 'master' into master | Shigeru Chiba | 2022-05-11 | 18 | -33/+176 |
|\ \ | |||||
| * \ | Merge pull request #278 from ximsfei/master | Shigeru Chiba | 2022-05-10 | 7 | -18/+104 |
| |\ \ | | | | | | | | | fixes a bug of ClassFile#renameClass(), some imports could not be successfully renamed. | ||||
| | * | | fixes a bug of ClassFile#renameClass(), some imports could not be ↵ | ximsfei | 2019-10-08 | 7 | -18/+104 |
| | | | | | | | | | | | | | | | | successfully renamed | ||||
| * | | | Merge pull request #390 from derklaro/master | Shigeru Chiba | 2022-05-10 | 1 | -1/+1 |
| |\ \ \ | | | | | | | | | | | Lower requirement for an extra type in constructor to Java 7- | ||||
| | * | | | Lower requirement for an extra type in constructor to Java 7- | derklaro | 2021-09-07 | 1 | -1/+1 |
| | | |/ | | |/| | |||||
| * | | | Remove redundant type check | April Schleck | 2022-03-31 | 1 | -1/+0 |
| | | | | | | | | | | | | The same condition is repeated twice (caught by FindBugs.) | ||||
| * | | | Fix for NullPointerException on detach() | Burak Şahin | 2021-09-21 | 1 | -1/+1 |
| |/ / | |||||
| * | | updates javassist.Loader to exclude jdk.internal. | chibash | 2021-05-14 | 2 | -1/+2 |
| | | | |||||
| * | | release 3.28.0-GArel_3_28_0_ga | chibash | 2021-05-08 | 1 | -1/+1 |
| | | | |||||
| * | | Merge pull request #306 from nschaefe/master | Shigeru Chiba | 2021-04-26 | 1 | -11/+11 |
| |\ \ | | | | | | | | | fix issue 305: CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException | ||||
| | * | | fix CodeConverter.replaceArrayAccess leads to ↵ | User | 2020-03-24 | 1 | -11/+11 |
| | | | | | | | | | | | | | | | | java.util.ConcurrentModificationException | ||||
| * | | | Merge pull request #363 from michalkurka/master | Shigeru Chiba | 2021-04-26 | 1 | -6/+19 |
| |\ \ \ | | | | | | | | | | | Fix a race condition in CtClassType#getClassFile3 | ||||
| | * | | | Fix a race condition in CtClassType#getClassFile3 | michalkurka | 2021-03-17 | 1 | -6/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 |