Summary: | Abstract Method Error on interface invocation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Roberto Corno <ragazzo.ionico> | ||||||
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 1.7.1 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Created attachment 223955 [details]
Maven project test case
first attachmente had a wrong class reference,sorry
|
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