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
--
Alexander Kriegisch
http://scrum-master.de
Andrei Ivanov schrieb am 26.11.2015 11:46:
Thank youAny clue?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.Hi,Just pasting the details from https://github.com/mojohaus/aspectj-maven-plugin/issues/7The 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>
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/aspectj-users