shifujun
c04c375e81
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.
6 months ago
wuwen
784a7c1ef9
fixes GitHub Issue 462 (Internal class issues in the Java 21)
8 months ago
LayHool
e447071657
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
1 year ago
Hiroshi Ukai
74f80bdfea
Issue-#426 Include Automatic-Module-Name in MANIFEST.MF and bump up the version to 3.29.2-GA
1 year ago
chibash
7f59e6431c
for releasing 3.29.1
1 year ago
chibash
3528a20dd9
prohibits too many items from being added to a constant pool.
the previous commit was wrong.
1 year ago
chibash
4f35e4e1a8
prohibits too many items from being added to a constant pool
1 year ago
chibash
2423b4961e
prepares for 3.29.0-GA release
2 years ago
chibash
e77a6263e8
removes an unused import declaration as PR 384 mentions.
2 years ago
chibash
c00688b472
uncomments test code suggested by PR405
2 years ago
chibash
e890cfeee3
cancels PR#391, which does not pass all the tests
2 years ago
chibash
682a497192
fixes a wrong indentation
2 years ago
chibash
9ba39378eb
does refactoring
2 years ago
chibash
eba64de014
fixes a bug in SignatureAttribute.renameClass().
2 years ago
chibash
b1c09a1476
fixs a compilation problem although one test still fails.
2 years ago
chibash
82e478b285
changes test code because package java.rmi.activation.ActivationGroupDesc does not exist any longer.
2 years ago
chibash
2b2ec51547
deletes src/test/test2/*.class
2 years ago
April Schleck
fc299f8bc0
Remove redundant type check
The same condition is repeated twice (caught by FindBugs.)
2 years ago
Burak Şahin
018169818c
Fix for NullPointerException on detach()
2 years ago
derklaro
1b8a927963
Only wrap the method name if the method doesn't come from the same decl class
2 years ago
derklaro
5d8868c03a
Lower requirement for an extra type in constructor to Java 7-
2 years ago
Timothy Hoffman
aeee909ea7
Replace array copy loop with System.arraycopy
2 years ago
Timothy Hoffman
0827c539b7
Replace remaining StringBuffer uses with StringBuilder
2 years ago
Timothy Hoffman
b4279f6817
Replace StringBuffer with StringBuilder and other minor String optimizations
2 years ago
chibash
b9a24bf129
updates javassist.Loader to exclude jdk.internal.
3 years ago
chibash
3112090a50
release 3.28.0-GA
3 years ago
michalkurka
64e15350cf
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 ago
chibash
5668291e06
fixes typos for #357
3 years ago
eshizhan
5bccb19933
add unit tests for LocalVariableAttribute.variableNameByIndex and MethodParametersAttribute.parameterName
3 years ago
eshizhan
084c8e89b5
add functions for getting the parameter names of method
3 years ago
Søren Gjesse
d2e757ee44
Check for extended frame type when updating StackTableOffset offset
Fixes #350
3 years ago
chibash
1c4e31b967
fixes Issue #339
3 years ago
chibash
b70a41bf52
updates the version number
4 years ago
chibash
da043b46bc
fixes a bug of javassist.bytecode.stackmap, which was reported as Issue #328.
4 years ago
Bartosz Firyn
5e6b5b27de
Fix typo in TypeChecker
Should be "bad field access" not "bad filed access".
4 years ago
User
a303209489
fix CodeConverter.replaceArrayAccess leads to java.util.ConcurrentModificationException
4 years ago
chibash
a6b7f12c25
for release 3.27.0-GA
4 years ago
Pietro Braione
a3005aaf4e
Fixes to support the full syntax of possible signatures
4 years ago
Pietro Braione
8782603156
Fix renaming of classes in presence of generic signatures and nested
classes.
4 years ago
chibash
150709141c
fixes a bug involuved in Pull Request #294
4 years ago
chibash
559bc90de5
fixdes Issue #282
4 years ago
cjw
4f8e274703
Support parsing 'byte[] a = new byte[]{};'
4 years ago
ximsfei
27999eefaf
add unit test
4 years ago
Dipta Das
f3dd7be032
Fix instruction printer double constant
4 years ago
chibash
5a796e1c2e
updates Readme.html
4 years ago
Carlos Sobrinho
7279bda227
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.
4 years ago
ximsfei
22075222e7
fixes a bug of ClassFile#renameClass(), some imports could not be successfully renamed
4 years ago
chibash
30627914d3
for release 3.26.0-GA
4 years ago
chibash
855ca0050a
adds CtClass#isKotlin() for PR #276
4 years ago
chibash
c78e17c67f
fixes a bug of JvstTest5#testRedundantInsertAfter() for Issue #275
4 years ago