Bug 395027 - Abstract Method Error on interface invocation
Summary: Abstract Method Error on interface invocation
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.7.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 11:46 EST by Roberto Corno CLA
Modified: 2012-11-26 08:40 EST (History)
0 users

See Also:


Attachments
Maven project test case (6.17 KB, application/x-compressed-tar)
2012-11-25 11:46 EST, Roberto Corno CLA
no flags Details
Maven project test case (6.84 KB, application/x-compressed-tar)
2012-11-26 08:40 EST, Roberto Corno CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Corno CLA 2012-11-25 11:46:44 EST
Created attachment 223935 [details]
Maven project test case

I've written a generic aspect sample (sample is attached).
Everything works as it should except one case.
Class A is the plain java object.
IFC is the aspect declared parent.
IFC declares a geeneric method.
If the method is invoked as A.method() it works flawlessy if invoked as IFC.method() it generates an abstract method error.
Sample code is attached, simply run "mvn clean", then "mvn test-compile" twice (it seems to be an ajc maven builder issue) then mvn test

If I try to cast the A class to the IFC before invoking method eg. ((IFC)A).method() the test doesn't even compile
Comment 1 Roberto Corno CLA 2012-11-26 08:40:30 EST
Created attachment 223955 [details]
Maven project test case

first attachmente had a wrong class reference,sorry