[jboss-jira] [JBoss JIRA] Commented: (JBAOP-255) Instanceof expressions and methods overriding with a different return type
Kabir Khan (JIRA)
jira-events at jboss.com
Thu Oct 19 08:55:42 EDT 2006
[ http://jira.jboss.com/jira/browse/JBAOP-255?page=comments#action_12345503 ]
Kabir Khan commented on JBAOP-255:
----------------------------------
class Super
{
Object getFoo(){}
}
class POJO extends Super
{
String getFoo(){}
}
becomes
class Super
{
Object getFoo(){}
}
class POJO extends Super
{
String getFoo(){}
volatile Object getFoo(){}
}
The extra volatile method is a "bridge method". (ACC_VOLATILE and ACC_BRIDGE are both 0x00000040).
http://www.angelikalanger.com/GenericsFAQ/FAQSections/TechnicalDetails.html#What%20is%20a%20bridge%20method
> Instanceof expressions and methods overriding with a different return type
> --------------------------------------------------------------------------
>
> Key: JBAOP-255
> URL: http://jira.jboss.com/jira/browse/JBAOP-255
> Project: JBoss AOP
> Issue Type: Bug
> Affects Versions: 1.5.0.GA
> Reporter: Kabir Khan
> Fix For: 2.0.0.alpha3
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list