Bug 415778 - Test-compile failure w/JDK 1.7 & source/target/compliance 1.7
Summary: Test-compile failure w/JDK 1.7 & source/target/compliance 1.7
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.7.3   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 12:06 EDT by Matthew Adams CLA
Modified: 2013-08-23 12:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Adams CLA 2013-08-23 12:06:19 EDT
When using JDK 1.6 or JDK 1.7 with source/target/compliance set to 1.6, my Maven project (using aspectj-maven-plugin) compiles ok.  When using JDK 1.7 with source/target/compliance set to 1.7, the test-compile phase of my Maven project fails, indicating that an ITD target fails to implement a required interface method:
=====
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.4:test-compile (default-testCompile) on project foundation-jpa: Compiler errors:
[ERROR] error at public class DeletableThing {
[ERROR] ^^^^^^^^^^^^^
[ERROR] /Users/matthew/Documents/foundation/foundation/jpa/src/test/java/com/scispike/foundation/jpa/test/unit/trait/persistence/DeletableThing.aj:10:0::0 The type DeletableThing must implement the inherited abstract method IHasEntityManager.getEntityManager()
...
=====
The same class, however, if placed in the main source tree (src/main/java) compiles successfully, implying that there is some difference in the way compilation is happening with s/t/c 1.7.

Andy Clement has been given reproducible private source offline.