[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Compiler removes java 8 method parameter names
|
It is very funny, but from my experience the parameter info is always there, see my comment on the AspectJ Maven ticket:
https://github.com/mojohaus/aspectj-maven-plugin/issues/7#issuecomment-159997058
If the info is not in your class files, meybe just don't use the Maven Compiler Plugin, only AspectJ Maven.
@Andy Clement: Please also read my comment there because the '-parameters' support in Ajc seems to be hard-coded. Is this intentional? Is it worth a bug ticket?
Regards
--
Alexander Kriegisch
http://scrum-master.de
Andrei Ivanov schrieb am 26.11.2015 11:46:
Hi,
Just pasting the details from
https://github.com/mojohaus/aspectj-maven-plugin/issues/7
The new compiler option -parameters allows to compile in the method parameter names information into the bytecode. After the aspectj processing this information goes removed.
Here ist the configuration of maven compiler plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-parameters</compilerArgument>
</configuration>
</plugin>
And configuration of aspectj
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8</source>
<target>1.8</target>
<complianceLevel>1.8</complianceLevel>
</configuration>
</plugin>
Looking at
https://eclipse.org/aspectj/doc/released/devguide/ajc-ref.html, I didn't see what parameter I could change to preserve the information.
Any clue?
Thank you