Commit Graph

13 Commits

Author SHA1 Message Date
acolyer
c298ef779c fix for Bugzilla Bug 54721
add this to API  (Signature.getDeclaringTypeName())
2004-03-19 20:48:01 +00:00
jhugunin
0c833438da Implemented feature for Bugzilla Bug 48091
Lazy instantiation of thisJoinPoint 
Speed-ups of 10-100X are measured even when running a small test case with minimal GC issues.

The actual feature implemented is that thisJoinPoint objects are only created just before calling the method for advice that requires them.  To take advantage of this feature you must use an if PCD or some other dynamic test that occurs in the PCD not the advice body to guard the expensive creation of the thisJoinPoint object.

-XlazyTjp flag must be passed to compiler to enable this feature.
If any around advice is present on the joinpoint then lazy instantiation
will be disabled.  An Xlint warning will be displayed in this case.

As a related optimization, several helper methods were added to
Factory.makeJP to reduce the code size when thisJoinPoint is used.
2004-01-24 02:28:54 +00:00
wisberg
ad2fb7a583 47952 fix: SoftException.printStackTrace(..) prints wrapped throwable (if not >= 1.4)
tested in 1.1, 1.3, 1.4 (but not in 1.1 release tests)
2004-01-15 05:21:33 +00:00
jhugunin
5834de9783 Fix for Bugzilla Bug 44587
Erroneous exception conversion 
and Bugzilla Bug 34206  
   before():execution(new(..)) does not throw NoAspectBoundException 

All exceptions that occur during the static intialization of a persingleton
aspect will be swallowed.  When using that aspect (via aspectOf()) 
a NoAspectBoundException will be thrown with the original exception
from the staitc initializer as the cause.
2004-01-14 15:24:06 +00:00
acolyer
eac16aee96 added getCause method (patch from Andy) for 1.4 compatibility. bug 49250 2004-01-07 13:30:26 +00:00
wisberg
458b26fe12 returning TestSuite rather than Test to permit all tests to run from Eclipse 2003-10-31 19:27:44 +00:00
wisberg
ac36f9cdf2 gutted. Should be removed once we've confirmed that it can safely be removed.
(not sure if CVS keeps history across file removal/add).
(tests run fine, no apparant clients)
2003-04-23 09:20:06 +00:00
wisberg
79a151bdfd 1.2 call replaced with equivalent 1.1 call. 2003-04-23 09:18:47 +00:00
wisberg
7fbdd52e8f prevent div/0, NPE (by inspection) 2003-04-19 07:16:57 +00:00
wisberg
a3082d86e2 resolving unused-imports warnings 2003-02-13 06:03:19 +00:00
jhugunin
1bf099a386 need this or there won't be a manifest in aspectjrt.jar 2003-01-16 04:56:21 +00:00
wisberg
c3300283ec initial version 2002-12-16 17:09:36 +00:00
wisberg
3cde920c3f initial version 2002-12-16 16:51:08 +00:00