Bug 250091 - Reflection method signature can't cope with parametrized return types of inter-type method declaration
Summary: Reflection method signature can't cope with parametrized return types of inte...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: All Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 1.6.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 09:43 EDT by Bruno De Fraine CLA
Modified: 2008-10-28 20:36 EDT (History)
1 user (show)

See Also:


Attachments
Test case to reproduce problem (622 bytes, text/plain)
2008-10-08 09:44 EDT, Bruno De Fraine CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno De Fraine CLA 2008-10-08 09:43:45 EDT
I noticed how thisJoinPoint.getSignature().toString() sometimes included the name "ClassNotFoundException" (incorrectly, for types that were obviously not ClassNotFoundException).

I made a smaller test case and it seems that this occurs for a parametrized types from an inter-type declaration only. The attached test case prints:

class A from sun.misc.Launcher$AppClassLoader@a9c85c extends class java.lang.Object (false)
class java.lang.ClassNotFoundException from null extends class java.lang.Exception (true)
class Base from sun.misc.Launcher$AppClassLoader@a9c85c extends class java.lang.Object (false)

And it's the second line that is unexpected.
Comment 1 Bruno De Fraine CLA 2008-10-08 09:44:45 EDT
Created attachment 114547 [details]
Test case to reproduce problem
Comment 2 Andrew Clement CLA 2008-10-28 20:36:58 EDT
test and fix committed, thanks for the testcase.  Now prints class A for the second line in your output.