| Summary: | Can't ask to parameterize a member of non-generic type | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] AspectJ | Reporter: | Petr <petrdiblik> | ||||||
| Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | aclement | ||||||
| Version: | 1.6.10 | ||||||||
| Target Milestone: | 1.6.12 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Petr
Created attachment 190831 [details]
test projects
Created attachment 190832 [details]
aspectj output file
simple example in attachment (test.zip) correction: - if you remove "fail" from fail1 (c:\test\fail1 => c:\test\1) it will compile without any problems I recreated it pretty quickly (thanks for the testcode), but then I observed that the line numbers didn't tie up with recent AspectJ builds. I then looked at the ajcore file you attached, and it says:
AspectJ Compiler 1.6.2 built on Saturday Oct 4, 2008 at 05:47:07 GMT
Although your pom expressed a 1.6.10 dependency, that was only onto the runtime, it didn't determine the level of compiler that would be used. I changed the pom slightly (new dependencies in the aspectj-maven-plugin section, and up'd the version of the plugin to 1.2):
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.2</version> // this is a change
// this bit is new...
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.6.10</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>1.6.10</version>
</dependency>
</dependencies>
// ... down to here
<configuration>
<source>1.6</source>
<complianceLevel>1.6</complianceLevel>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal> <!-- use this goal to weave all your main classes -->
<!--<goal>test-compile</goal> use this goal to weave all your test classes -->
</goals>
</execution>
</executions>
</plugin>
with those changes, the build now runs clean using 1.6.10. After playing with versions looks like this issue was fixed in the 1.6.8 timeframe.
|