Interestingly, it works, when the Subclass is compiled within Eclipse!
A check of the bytecode reveals that javac generates an invokespecial on the overwritten method.
The Eclipse compiler generates a normal invokevirtual to the method with the base generic type. This call seems to get intercepted then.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Interestingly, it works, when the Subclass is compiled within Eclipse!
A check of the bytecode reveals that javac generates an invokespecial on the overwritten method.
The Eclipse compiler generates a normal invokevirtual to the method with the base generic type. This call seems to get intercepted then.
So a workaround is to compile with Eclipse. In Maven, this is possible via compilerId: http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html