]>
source.dussan.org Git - javassist.git/log
nickl- [Fri, 27 Oct 2017 04:43:49 +0000 (06:43 +0200)]
Add getMethodHandle to SecurityActions.
The main advantage is that we can do the privileged setAccessible during creation and
then freely invoke via the authorized method handle.
As per the javadocs:
Access checks are applied in the factory methods of Lookup, when a method handle is created.
his is a key difference from the Core Reflection API, since java.lang.reflect.Method.invoke
performs access checking against every caller, on every call.
The performance boost is just a bonus.
nickl- [Wed, 25 Oct 2017 18:40:04 +0000 (20:40 +0200)]
Make an effort to secure privileged use.
Oracle (or maybe it was still Sun) warns that we should prevent from exposing access we gain to
privileged functionality like the unsafe etc. Before Oracle decides to restrict us even more lets
make an effort at least.
Shigeru Chiba [Sun, 12 Nov 2017 06:45:25 +0000 (15:45 +0900)]
Merge pull request #160 from nickl-/squash-warnings
Source walk/Spring clean/Parameterize/Enhance/Squash warnings et.al.
nickl- [Mon, 30 Oct 2017 19:27:52 +0000 (21:27 +0200)]
Organize imports to disolve ambiguity.
nickl- [Mon, 30 Oct 2017 18:43:30 +0000 (20:43 +0200)]
Squash compiler warnings in tests.
With the unit tests warnings were squashed by suppressing them with SuppressWarnings annotations, instead of
reparing the issues as was done with the source. Reasons being...
* The tests might be relying on the types as they were defined.
* If the tests were written to test against the correct forms they would've/should've stipulated those.
* Even unused members might be important to tests so we attempt to change as little as possible.
nickl- [Mon, 30 Oct 2017 18:37:23 +0000 (20:37 +0200)]
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.
nickl- [Mon, 30 Oct 2017 06:07:43 +0000 (08:07 +0200)]
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
nickl- [Mon, 30 Oct 2017 06:03:47 +0000 (08:03 +0200)]
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
nickl- [Mon, 30 Oct 2017 04:50:20 +0000 (06:50 +0200)]
Implement hashCode for Annotation.
To honour the Object.equals contract.
nickl- [Mon, 30 Oct 2017 04:42:35 +0000 (06:42 +0200)]
Implement hashCode for Type.
To honour the Object.equals contract.
nickl- [Mon, 30 Oct 2017 04:28:52 +0000 (06:28 +0200)]
Implement hashCode for MultiType.
To honour the Object.equals contract.
nickl- [Mon, 30 Oct 2017 04:22:57 +0000 (06:22 +0200)]
Implement hashCode for MultiArrayType.
To honour the Object.equals contract.
nickl- [Sun, 29 Oct 2017 22:39:35 +0000 (00:39 +0200)]
Fix deperecated junit.framework.Assert.
Changed to org.junit.Assert.
nickl- [Sat, 28 Oct 2017 04:28:05 +0000 (06:28 +0200)]
Suppress deprecation Applet.
nickl- [Sat, 28 Oct 2017 04:27:02 +0000 (06:27 +0200)]
Suppress deprecation ClassPool.makePackage
nickl- [Sat, 28 Oct 2017 04:22:42 +0000 (06:22 +0200)]
Fix deprecation getPackage to getDefinedPackage
nickl- [Sat, 28 Oct 2017 04:18:43 +0000 (06:18 +0200)]
Added default serialVersionUID.
nickl- [Wed, 25 Oct 2017 22:33:39 +0000 (00:33 +0200)]
Upgrade junit from ver 3 to 4.
There were minimal changes:
Some tests had their own runners these were discontinued as IDEs/maven run the tests anyway.
Removed the main methods for these.
2 tests were dependent on the running order so added the test sorter.
All tests succeed on junit 4 with legacy support.
nickl- [Wed, 25 Oct 2017 19:11:20 +0000 (21:11 +0200)]
Add version to maven-bundle-plugin.
In order to squash the mvn build warnings.
nickl- [Wed, 25 Oct 2017 19:10:26 +0000 (21:10 +0200)]
Configure source encoding as UTF-8.
In order to squash the mvn build warnings.
nickl- [Wed, 25 Oct 2017 19:08:57 +0000 (21:08 +0200)]
Move runtests to build directory.
Move the test output folder 'runtests' to target or build directory so that mvn clean can clean that.
chibash [Thu, 26 Oct 2017 21:51:38 +0000 (06:51 +0900)]
changes ClassPool#appendSystemPath(). The new implementation appends ClassClassPath when the JVM is earlier than 9.
chibash [Thu, 26 Oct 2017 21:12:33 +0000 (06:12 +0900)]
fixes a bug of getAnnotations(). Some hidden annotations were not ignored.
Scott Marlow [Tue, 10 Oct 2017 18:12:58 +0000 (14:12 -0400)]
upgrade maven-javadoc-plugin to 3.0.0-M1 to support publishing of 3.22.0-GA
chibash [Tue, 10 Oct 2017 17:18:14 +0000 (02:18 +0900)]
removes JvstTest4#testJIRA150b because it is obsolete.
chibash [Tue, 10 Oct 2017 02:44:54 +0000 (11:44 +0900)]
3.22.0-GA release
chibash [Mon, 11 Sep 2017 16:17:19 +0000 (01:17 +0900)]
updates ConstPool to support Module and Package
chibash [Thu, 1 Jun 2017 13:46:39 +0000 (22:46 +0900)]
modifies CtClass#setModifiers() to correctly support inner classes.
chibash [Wed, 31 May 2017 08:44:26 +0000 (17:44 +0900)]
delete testHotswap() because java 9 does not seem to allow a java agent to be attached after the JVM starts
chibash [Tue, 30 May 2017 16:52:09 +0000 (01:52 +0900)]
to support Java 9-ea+171
chibash [Sun, 16 Apr 2017 15:28:27 +0000 (00:28 +0900)]
modifies the version number
chibash [Sun, 16 Apr 2017 14:42:05 +0000 (23:42 +0900)]
adds javassist.util.HotSwapAgent
chibash [Sat, 15 Apr 2017 14:57:23 +0000 (23:57 +0900)]
adds javassist.util.proxy.ProxyFactory#onlyPublicMethods. If true, Javassist uses java.lang.invoke.MethodHandles.Lookup to load a class.
Shigeru Chiba [Wed, 12 Apr 2017 18:50:48 +0000 (03:50 +0900)]
Merge pull request #130 from andresluuk/patch-1
A fix for older JDK8 versions: https://bugs.openjdk.java.net/browse/JDK-
8041920
chibash [Wed, 12 Apr 2017 18:45:51 +0000 (03:45 +0900)]
modifies to use sun.misc.Unsafe#defineClass so that Javassist can run with jigsaw
Andres Luuk [Mon, 10 Apr 2017 14:18:07 +0000 (17:18 +0300)]
Update ClassFile.java
A fix for older JDK8 versions: https://bugs.openjdk.java.net/browse/JDK-
8041920
This caused random failures a little time after startup. Reported now so that when we upgrade javassist for JDK9 then we would not have to fork this class.
chibash [Tue, 20 Dec 2016 09:07:11 +0000 (18:07 +0900)]
updates the test code to run on Java 9 EA+149.
Due to the specification change of jigsaw, ClassLoader#defineClass()
cannot be invoked through reflection API. As a workaround,
--add-opens java.base/java.lang=ALL-UNNAMED
must be given to the JVM. The ant target "runtest9" adds this jvm
argument.
chibash [Fri, 16 Dec 2016 14:22:18 +0000 (23:22 +0900)]
removes javassist.ModuleClassPath.
See #ClassFilesAsResources in JSR 376. We don't need to hack the module system to read a class file in java.lang.
http://openjdk.java.net/projects/jigsaw/spec/issues/
chibash [Thu, 13 Oct 2016 17:40:06 +0000 (02:40 +0900)]
implements better annotation handling since Javassist may fail to
create a proxy object due to access controls by jigsaw.
chibash [Tue, 4 Oct 2016 23:47:11 +0000 (08:47 +0900)]
updates Readme.html.
chibash [Tue, 4 Oct 2016 16:02:21 +0000 (01:02 +0900)]
release 3.22.0-CR1
chibash [Tue, 4 Oct 2016 15:51:28 +0000 (00:51 +0900)]
Merge branch 'test/java9-jigsaw'
chibash [Tue, 4 Oct 2016 10:42:53 +0000 (19:42 +0900)]
modifies javadoc typos.
chibash [Mon, 3 Oct 2016 15:44:29 +0000 (00:44 +0900)]
fixes typos in javadoc comments
chibash [Sun, 2 Oct 2016 16:10:04 +0000 (01:10 +0900)]
updates files for release 3.21.0-GA
chibash [Thu, 29 Sep 2016 11:43:05 +0000 (20:43 +0900)]
Merge branch 'master' into test/java9-jigsaw
chibash [Tue, 27 Sep 2016 15:51:15 +0000 (00:51 +0900)]
improves the backward compatibility of LoaderClassPath.
LoaderClassPath is modified to show the same behavior in both Java 8 and 9.
chibash [Sun, 18 Sep 2016 14:49:43 +0000 (23:49 +0900)]
enables removal of attributes
Shigeru Chiba [Sun, 18 Sep 2016 13:45:41 +0000 (22:45 +0900)]
Merge pull request #100 from oreissig/remove-annotation
removal of annotations
Shigeru Chiba [Sat, 17 Sep 2016 17:41:12 +0000 (02:41 +0900)]
Merge pull request #98 from PeterFeicht/master
Fix NullPointerException in ControlFlow constructor
chibash [Sat, 17 Sep 2016 17:32:31 +0000 (02:32 +0900)]
allows adding a default method to an interface type.
oreissig [Sat, 20 Aug 2016 12:46:14 +0000 (14:46 +0200)]
implement removal of annotations
Peter Feichtinger [Thu, 11 Aug 2016 10:52:29 +0000 (12:52 +0200)]
Fix NullPointerException in ControlFlow constructor.
An NPE would be thrown by the constructor when called with a method
without code.
Also clarify the documentation of a few methods.
chibash [Wed, 3 Aug 2016 16:45:57 +0000 (01:45 +0900)]
fixes a bug in ClassClassPath. It was reported in Issue #97.
chibash [Tue, 2 Aug 2016 03:18:08 +0000 (12:18 +0900)]
adds javassist.jar because the unit tests fail without it.
chibash [Tue, 2 Aug 2016 03:11:14 +0000 (12:11 +0900)]
updates pom.xml for building on Java 9.
chibash [Mon, 1 Aug 2016 16:36:45 +0000 (01:36 +0900)]
fixes calls to a deprecated method in Java 9.
chibash [Sun, 31 Jul 2016 16:40:51 +0000 (01:40 +0900)]
modifies a test case. Now all the test cases run successfully with Java 9 EA.
Shigeru Chiba [Sun, 31 Jul 2016 03:24:55 +0000 (12:24 +0900)]
Merge pull request #96 from jboss-javassist/master
bug fixes from master
chibash [Sun, 31 Jul 2016 03:20:22 +0000 (12:20 +0900)]
modifies addInvokestatic() in Bytecode to support a static method declared in an interface type.
chibash [Sun, 31 Jul 2016 03:18:59 +0000 (12:18 +0900)]
modifies runtest in build.xml
chibash [Sun, 31 Jul 2016 02:09:13 +0000 (11:09 +0900)]
Merge branch 'test/java9-jigsaw' of github.com:jboss-javassist/javassist into test/java9-jigsaw
chibash [Sun, 31 Jul 2016 02:03:51 +0000 (11:03 +0900)]
adds ModuleClassPath.java
chibash [Sat, 30 Jul 2016 14:06:05 +0000 (23:06 +0900)]
Merge branch 'master' of github.com:jboss-javassist/javassist into test/java9-jigsaw
Shigeru Chiba [Sat, 30 Jul 2016 14:04:07 +0000 (23:04 +0900)]
Merge pull request #95 from jboss-javassist/master
merges bug fixes
chibash [Sat, 30 Jul 2016 12:28:39 +0000 (21:28 +0900)]
removes redundant whitespaces
chibash [Sat, 30 Jul 2016 09:47:59 +0000 (18:47 +0900)]
fixes a bug of ProxyFactory. It could not deal with default methods declared in an interface. https://github.com/jboss-javassist/javassist/issues/45
chibash [Sat, 30 Jul 2016 09:47:59 +0000 (18:47 +0900)]
fixes a bug of ProxyFactory. It could not deal with default methods declared in an interface.
chibash [Sat, 30 Jul 2016 07:24:30 +0000 (16:24 +0900)]
updates the version number.
chibash [Sat, 30 Jul 2016 07:22:59 +0000 (16:22 +0900)]
fixes a bug of stackmap generation. The bug was reported here: https://github.com/jboss-javassist/javassist/issues/83
Shigeru Chiba [Thu, 14 Jul 2016 14:49:43 +0000 (23:49 +0900)]
Merge pull request #88 from jboss-javassist/master
fixes many compatibility problems with older Java (i.e. 1.4)
chibash [Thu, 14 Jul 2016 14:36:15 +0000 (23:36 +0900)]
fixes many compatibility problems with older Java (i.e. 1.4)
chibash [Thu, 14 Jul 2016 10:53:29 +0000 (19:53 +0900)]
modifies ClassPool so that it can read most class files.
chibash [Thu, 14 Jul 2016 03:56:05 +0000 (12:56 +0900)]
adds ClassFile.JAVA_9
chibash [Sun, 12 Jun 2016 00:52:40 +0000 (09:52 +0900)]
modifies test code.
chibash [Sun, 12 Jun 2016 00:47:15 +0000 (09:47 +0900)]
modifies test code
chibash [Sun, 12 Jun 2016 00:46:43 +0000 (09:46 +0900)]
updates javassist.jar
chibash [Thu, 9 Jun 2016 10:19:20 +0000 (19:19 +0900)]
updates javadoc
chibash [Tue, 17 May 2016 16:18:20 +0000 (01:18 +0900)]
modifies javadoc.
chibash [Wed, 27 Apr 2016 14:07:26 +0000 (23:07 +0900)]
fixes a bug JIRA JASSIST-262
chibash [Tue, 23 Feb 2016 16:57:05 +0000 (01:57 +0900)]
fixes JIRA JASSIST-250
chibash [Tue, 23 Feb 2016 10:22:13 +0000 (19:22 +0900)]
modifies the implementation of that invokes an interface default method
chibash [Tue, 23 Feb 2016 09:54:20 +0000 (18:54 +0900)]
fixes a bug of test5.JvstTest5.testInvalidCastWithDollar
chibash [Sun, 21 Feb 2016 17:05:06 +0000 (02:05 +0900)]
updates javassist.util.proxy to support a default interface method in Java 8
chibash [Fri, 12 Feb 2016 01:02:47 +0000 (10:02 +0900)]
fixes a deadlock in getDeclaredMethods (Issue #69)
chibash [Thu, 11 Feb 2016 16:56:34 +0000 (01:56 +0900)]
fixes JASSIST-256, adding an annotation to a class doesn't work on reflection
chibash [Thu, 11 Feb 2016 15:10:20 +0000 (00:10 +0900)]
fixes a concurrency bug in ProxyFactory (JASSIST-259)
chibash [Tue, 12 Jan 2016 14:47:06 +0000 (23:47 +0900)]
rebuilds javassist.jar by Java 6 compiler
chibash [Mon, 7 Dec 2015 15:28:29 +0000 (00:28 +0900)]
updates Readme.html to record the fix of JASSIST-245
Shigeru Chiba [Mon, 7 Dec 2015 15:20:42 +0000 (00:20 +0900)]
Merge pull request #54 from wuwen5/compiler-Argument
fixes JAVASSIST-245
<source> and <target> is 1.6, but <compilerArgument> "-parameters" in1.8
chibash [Mon, 7 Dec 2015 15:10:58 +0000 (00:10 +0900)]
fixes JASSIST-255 Primitive array return values cause invalid cast to Object
chibash [Thu, 3 Dec 2015 03:23:33 +0000 (12:23 +0900)]
updates the tutorial
chibash [Wed, 7 Oct 2015 07:35:52 +0000 (16:35 +0900)]
updates javadoc comments.
chibash [Fri, 25 Sep 2015 06:32:41 +0000 (15:32 +0900)]
modifies a test case for JIRA JASSIST-248.
chibash [Fri, 25 Sep 2015 06:08:57 +0000 (15:08 +0900)]
fixes JIRA JASSIST-248.
Javassist cannot compile super.m() if m is a default method
declared in an interface.
chibash [Thu, 24 Sep 2015 15:26:43 +0000 (00:26 +0900)]
adds a test case for JIRA JASSIST-248
chibash [Tue, 11 Aug 2015 22:07:26 +0000 (07:07 +0900)]
fixed minor problems in javadoc etc.
Shigeru Chiba [Tue, 11 Aug 2015 14:51:10 +0000 (23:51 +0900)]
Merge pull request #57 from kuzukami/hasAnnotation_By_String
hasAnnotation(String clazzName) method as well as hasAnnotation(Class)
Pull request #57
kuzukami.sh [Mon, 13 Jul 2015 07:55:01 +0000 (16:55 +0900)]
append an new API of hasAnnotation(String annotClsName)
chibash [Thu, 6 Aug 2015 15:53:44 +0000 (00:53 +0900)]
rebuilt javassist.jar