[jboss-jira] [JBoss JIRA] Issue Comment Edited: (JASSIST-144) ProxyObject#setHandler interferes with business methods of the same name

Paul Pogonyshev (JIRA) jira-events at lists.jboss.org
Tue Aug 23 11:29:17 EDT 2011


    [ https://issues.jboss.org/browse/JASSIST-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623475#comment-12623475 ] 

Paul Pogonyshev edited comment on JASSIST-144 at 8/23/11 11:27 AM:
-------------------------------------------------------------------

Maybe in the long run you should deprecate {{ProxyObject}} and create a new interface {{Proxy}}.  Replacement methods for {{getHandler}} and {{setHandler}} would accept a dummy argument of type declared in the Javassist package, so these wouldn't clash with actual user methods.  Also, you should probably avoid Java pseudo-property argument convention to avoid this stuff from shining through {{java.beans.Introspector}}.

Don't see any solution without breaking back-compatibility.

      was (Author: doublep):
    Maybe in the long run you should deprecated {{ProxyObject}} and create a new interface {{Proxy}}.  Replacement methods for {{getHandler}} and {{setHandler}} would accept a dummy argument of type declared in the Javassist package, so these wouldn't clash with actual user methods.  Also, you should probably avoid Java pseudo-property argument convention to avoid this stuff from shining through {{java.beans.Introspector}}.

Don't see any solution without breaking back-compatibility.
  
> ProxyObject#setHandler interferes with business methods of the same name
> ------------------------------------------------------------------------
>
>                 Key: JASSIST-144
>                 URL: https://issues.jboss.org/browse/JASSIST-144
>             Project: Javassist
>          Issue Type: Feature Request
>    Affects Versions: 3.12.0.GA
>            Reporter: Steve Ebersole
>            Assignee: Shigeru Chiba
>
> Being reported by Hibernate/JPA users -> https://hibernate.onjira.com/browse/HHH-5731

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list