Commit Graph

58 Commits

Author SHA1 Message Date
acolyer
3120e45482 tests for the new options handling 2004-06-08 15:14:29 +00:00
aclement
9ebfc84930 Fix and tests for Bugzilla Bug 62227
Load Time Weaving aborts on any kind of warning (declare/xlint)
2004-05-14 12:51:52 +00:00
acolyer
1fa4c5fe1b change test cases to use File.pathSeparator rather than ";" 2004-04-26 14:59:01 +00:00
mkersten
3b7bd4b6f1 AsmBuilderTest.testNullHandlingOfVisit() now checks for an NPE instead of an EmptyStackException. I'm not sure how the original could have worked in the absence of the handle cache. 2004-04-07 04:07:54 +00:00
aclement
0521e79aea Fix for Bug 55341
error Type mismatch: cannot convert from java.lang.String to java.lang.String
2004-04-02 12:45:13 +00:00
acolyer
33d8ee9eed fix for Bugzilla Bug 31460
Weaving class loader
2004-04-02 12:03:40 +00:00
wisberg
6cbf9cca10 Convenience method to run ajc in a child classloader and get List/String results in the parent (e.g., when running as a JUnit test) 2004-03-31 08:02:30 +00:00
aclement
40de354443 Fix for Bugzilla Bug 41181
Support SerialVersionUID field if no new fields declared on class
2004-03-16 09:21:31 +00:00
aclement
4e4a50e912 Checking in Noel's update to the benchmarks. We have to scale up the numbers because Jim/Erik keep making the compiler/weaver faster! 2004-02-19 14:25:17 +00:00
aclement
8555cabe0c Yes yes, I broke the build. The performance code had a 1.4 API in it (split()) which I am now removing. 2004-02-10 17:16:33 +00:00
aclement
91cb850e1f Performance benchmarks from Noel and Matthew. Run these tests standalone to generate a .csv file containing results. 2004-02-10 14:51:29 +00:00
aclement
775d1175b7 Fix for Bugzilla Bug 50641
Better binary compatibility for advice method names 
- I've run the tests a thousand times and they all pass, I'm still nervous about this first big commit though *gulp*
2004-02-09 15:07:37 +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
acolyer
dd7daa469f eliminated a dependency on org.eclipse.core.runtime that had crept
into this source - only the org.eclipse.jdt.core project should
contain links to other portions of eclipse source.
2004-01-23 19:06:25 +00:00
acolyer
c37cc870d1 spring cleaning in advance of 1.2 enhancements:
removed unused imports, local variables, and private methods
(still there, just commented out).
2004-01-23 11:49:16 +00:00
acolyer
19ed0a21b8 move to Eclipse 3.0 M6 JDT core (v_396). Also makes 1.4 the
default mode (inherited behaviour from JDT).
2004-01-13 11:27:59 +00:00
jhugunin
a4a12342a1 Fix for: Bugzilla Bug 49814
ConfigParser.java:132
2004-01-12 11:37:20 +00:00
acolyer
60c03aca9e Rogue import of EajcModuleTests was breaking Eclipse builds 2003-11-04 11:07:57 +00:00
wisberg
61943d2141 using ../{module}/ convention for testdata references so tests can be run from any peer directory/module, i.e., from one module
Also using canonical rather than absolute path to predict generated paths
2003-10-31 19:41:55 +00:00
acolyer
a76fbd2d4e test for canonical versions of sourcedirs etc. 2003-09-12 19:28:25 +00:00
mkersten
b5d8b449c7 Updated org.aspectj.asm relationship model to string-handle-based API in order to support adding and removing relationships at any point in the compilation cycle, and to support external tools building relationships (e.g. JDT's incremental containment hierarchy builder). Also made inter-type declaration relationships show up in the model. 2003-08-14 09:07:44 +00:00
mkersten
11d7649fc3 Minor improvements to structure model generation, clean up of test suite output, and port of AJDT to new ASM APIs. 2003-08-12 10:29:59 +00:00
acolyer
ca4acbfcb0 use System property aspectjrt.path to add to testcase classpath if defined 2003-08-11 09:48:42 +00:00
mkersten
4a1a347b22 Got advice relationships working. 2003-08-08 21:10:32 +00:00
mkersten
f1deb9c110 Reimplemented ASM API as described in bug "41254: revise asm and create interfaces". Containment hierarchy is done and tests added. Relationships are not done yet. All clients except AJDT ported. More UI porting in Swing clients required. 2003-08-08 11:02:53 +00:00
jhugunin
efc1cc4739 fix for Bugzilla Bug 41175
binary aspect-declared methods conflict, lost their exception clauses

larger fix to address more issues with aspect-declared methods in bytecode form
also addressed declared exception issue more generally

this fix should be more stable than a smaller hack that just fixed this specific bug
report would have been.  added a few tests to match increased scope.
2003-08-08 00:26:22 +00:00
mkersten
be23e3d01d Changed org.aspectj.bridge.IMessage.getISourceLocation to getSourceLocation in order to match method naming conventions. 2003-08-07 09:16:05 +00:00
mkersten
acdf688ccc Fixed
- 40257: parsing of "../" paths in LST files is broken 

Added interactive test for checking compiler task list messages (via browser).
2003-08-07 08:10:01 +00:00
wisberg
3b729301c7 added test to ensure handler from initial runCommand() is not used in repeatCommand().
The test fails so there is a bug, but in the current system we seem to use the same handler,
so the bug is harmless. (It does affect other things I'm doing.)
The test is disabled by default and can be enabled with a system property.
2003-08-06 19:55:52 +00:00
mkersten
78869703a8 Fixed 39626: Added AsmBuilderTest class that tests handling for this and related null parameters. 2003-07-30 09:10:45 +00:00
mkersten
819bf96738 Refactored singleton reference to be accessed via getDefault() in order to be consistent with the rest of AJDE. 2003-07-25 15:13:55 +00:00
jhugunin
a1bb5dae64 added test to try to investigate size issues, but can't reproduce for any
number of loops in BasicCommandTestCase.testSizeChanges()
2003-07-23 01:05:55 +00:00
jhugunin
c509c6f751 fix and test for Bugzilla Bug 38131
ajc needs -d . option while correctly compiling classes from subpackage
2003-05-27 17:35:13 +00:00
jhugunin
812c943083 fix for reported bug with invalid classpath entries (from the environment)
being reported as errors.  These are now just info messages.
2003-05-07 20:29:39 +00:00
acolyer
55508643c4 "organized imports" to eliminate compiler warnings 2003-05-06 12:46:55 +00:00
jhugunin
bcdbd68f76 fix and better tests for
Bugzilla Bug 37152  
   java.lang.VerifyError:
2003-05-02 20:36:06 +00:00
wisberg
15c10cfc9c test case can't expect usage message any more 2003-04-30 02:07:21 +00:00
wisberg
ab1fa13080 track internal API changes 2003-04-29 00:26:19 +00:00
jhugunin
f236927770 fix and test for
Bugzilla Bug 34951  
   NPE compiling without aspectjrt.jar
2003-04-27 23:29:27 +00:00
jhugunin
039d04d39d fixing declare parents problems 2003-04-11 00:48:49 +00:00
jhugunin
ac764de72c re-implementing support for incremental compilation after move to 2.1
this time we're doing it all ourselves rather than using the Builders which
have steadily come to depend more on having an actual eclipse 
workbench running
2003-04-10 18:56:04 +00:00
jhugunin
e3ad8bbd02 Major changes in order to move to Eclipse-JDT 2.1 as a base.
In the process of this many changes were made to try to make
keeping up with the Eclipse-JDT code base as easy as possible in
the future.
2003-03-28 00:54:19 +00:00
jhugunin
ad5377fcb2 implemented fastMatch method along with some basic tests of
weave performance with and without it
2003-03-12 02:10:40 +00:00
jhugunin
bb66774ab4 further work on binary aspects (aspect path) tested and implemented correct behavior
for obvious forms of abstract aspects now
2003-03-11 19:06:21 +00:00
jhugunin
cd8bd2c7ce further work on binary aspects (aspect path) tested correct behavior
for obvious forms of concrete aspects, next need to address abstract
2003-03-10 23:18:56 +00:00
jhugunin
816fdfe472 Half-way through refactoring of ResolvedTypeX's and Worlds. This
should make incremental compilation and using binary aspect libraries
work MUCH better.
The current state doesn't fix any of those issues, but it also does
continue to pass all of the existing tests.
2003-03-08 03:02:28 +00:00
mkersten
2484d6b39f Fixed setting runnable bit on structure nodes.
Fixed failing incremental test.
2003-02-28 02:55:14 +00:00
wisberg
1b3d8dec76 resolving unused-imports warnings 2003-02-13 05:51:35 +00:00
wisberg
5a21d704c2 aspectjrt.jar warning now in messages (rather than stdout), so permitting it in this test case. 2003-02-01 00:05:08 +00:00
mkersten
85a827a7f2 Committed patches specified in:
http://bugs.eclipse.org/bugs/show_bug.cgi?id=29769
2003-01-25 01:25:30 +00:00