Bug 54721

Summary: add this to API
Product: [Tools] AspectJ Reporter: Erik Hilsdale <eh-ajdev>
Component: CompilerAssignee: Erik Hilsdale <eh-ajdev>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P2    
Version: 1.1.1   
Target Milestone: 1.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.