Bug 54721 - add this to API
Summary: add this to API
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: 1.2   Edit
Assignee: Erik Hilsdale CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-12 17:40 EST by Erik Hilsdale CLA
Modified: 2004-03-19 15:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Hilsdale CLA 2004-03-12 17:40:03 EST
main overhead is call to Class.getName()
core native method
apparently creates a new String for each call
deficiency in AspectJ’s API


AspectJ 1.2 adds Signature.getDeclaringClassName()
Comment 1 Adrian Colyer CLA 2004-03-19 11:21:50 EST
Added a method Signature.getDeclaringTypeName()  
(to be consistent with Signature.getDeclaringType()).

The string makers for toString etc. now go via this method to pick up the cached 
version rather than calling declaringType.getName() each time.

Will mark this as fixed once the test are clear (and aspectjrt.jar in lib is 
updated).
Comment 2 Adrian Colyer CLA 2004-03-19 15:53:49 EST
fixed in tree.