shifujun
2cdc0275b7
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.
6ヶ月前
Timothy Hoffman
b4279f6817
Replace StringBuffer with StringBuilder and other minor String optimizations
2年前
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年前
chibash
f95d49749d
avoids ConcurrentModificationException in 3.23.1-GA reported in Issue #224.
5年前
nickl-
d7e4f99372
Fix #152 inner class modifiers.
Applied fix for #152 "Wrong modifiers returned for nested classes" as suggested by @pietrobraione.
Includes unit tests for all access modifiers and static.
6年前
nickl-
e5656fc869
Organize imports to disolve ambiguity.
6年前
nickl-
62851d0af3
Source walk/Spring clean/Parameterize/Enhance et.al.
The following were applied during multiple itterations through the source.
* Parameterize raw types.
* Mark unused members.
* Annotate override and deprecated methods.
* Convert loops to enhance for loop.
* Remove redundant else statements.
* Widening collection type references.
* Optimize code for improved readability.
* Squash compiler warnings.
* Identify smells.
6年前
chibash
dfd0733e1f
modifies CtClass#setModifiers() to correctly support inner classes.
7年前
chibash
f6992d66a0
allows adding a default method to an interface type.
7年前
chibash
abdeecb581
fixes a deadlock in getDeclaredMethods (Issue #69)
8年前
chibash
e68077dc87
fixed minor problems in javadoc etc.
8年前
kuzukami.sh
2d0d143c0b
append an new API of hasAnnotation(String annotClsName)
9年前
KyongSik-Yoon
f82eadaf4c
Generic is not supported by JDK under 1.5 version.
9年前
chibash
c43f4a7cde
updated javadoc comments. makeClass(ClassFile cf) was added to ClassPool.
9年前
chibash
e000e8f682
changed the source so that javac 1.6 can compile it
9年前
chibash
7f73ad1fbc
fixed JASSIST-237
9年前
chibash
0ba6f9efdc
for fixing JASSIST-236, I've added getDeclaredMethods(String) to CtClass.
9年前
chibash
a0f4d935a2
fixed JASSIST-235. Now CtClass.getEnclosingMethod() is deprecated due to its potential bug.
9年前
chiba
e2cfbeaed7
implemented JASSIST-170
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@639 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
12年前
chiba
205b65d96c
fixed JASSIST-155
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@613 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
12年前
chiba
121a67e8df
added the Apache license.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@584 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
13年前
chiba
260b2fd56c
fixed JASSIST-121
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@575 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
13年前
chiba
066ce8b872
fixed JASSIST-119
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@552 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
14年前
chiba
a690c8bf87
fixed JASSIST-84
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@484 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
15年前
chiba
e6ba542a6e
improved the runtime check by CtClass.addMethod()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@476 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
15年前
chiba
50da9b9f3b
fixed a performance bug caused by many calls to CtBehavior#setBody()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@448 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
16年前
chiba
1d637574af
for JASSIST-37
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@411 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
16年前
chiba
8941069e00
made CtClass#freeze() public.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@394 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
d133f96da4
for reducing memory footprint
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@393 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
92fae275e5
edited for fixing memory leak
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@392 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
25084e8a71
a small bug fix
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@384 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
73969fa11a
made automatic pruning off by default because I found that pruning does not really save memory (only 20%). I changed Javassist to compress a class file on memory after toBytecode().
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@383 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
a318d5d7d8
updated the copyright notices.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@382 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
b8445cabac
fixed bugs related to stack map tables.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@378 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
b269676282
Javassist has been producing an interface with a wrong modifier. I fixed this.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@367 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
17年前
chiba
a62c581607
fixed JIRA JASSIST-25
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@304 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
f19b6003ae
reformatted.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@301 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
kkhan
0273ae2abc
add getAvailableAnnotations() methods to CtClass, CtBehaviour and CtField. These work the same as getAnnotations() but instead of throwing a ClassNotFoundException, annotations not on the classpath are not returned.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@294 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
kkhan
9a1a73334f
Add methods to determine if a CtClass is an annotation or an enum
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@279 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
0394465810
fixed JIRA JASSIST-19.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@276 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
adrian
163f2ece31
Allow a ClassPool to override the "guess" at the classloader to use.
The default is still the thread context classloader.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@259 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
003dce367a
fixed a minor problem of CtClassType
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@257 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
51c2a8c834
added getNestedClasses() in CtClass.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@256 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
1330b17839
replaced individual calls to Thread.currentThread().getContextClassLoader() with a call to ClassPool#getContextClassLoader(), which simply forward to Thread.current...
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@249 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
f89063af06
reformatting.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@248 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
adrian
14e86c4042
Fix NPE when there are no parameter annotations.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@247 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
adrian
7bb1f60c5b
Add support for getParameterAnnotations() from the CtBehaviour.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@246 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
ad7d5a9214
fixed a bug in getModifiers() in CtClass.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@236 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
774508d17c
updated copyright notices
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@234 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前
chiba
ecb71c7515
added some methods to javassist.Bytecode and Descriptor.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@225 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
18年前