Bug 395027

Summary: Abstract Method Error on interface invocation
Product: [Tools] AspectJ Reporter: Roberto Corno <ragazzo.ionico>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Maven project test case
none
Maven project test case none

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