You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/02 17:01:28 UTC

DO NOT REPLY [Bug 32496] New: - Converters should really be final?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32496

           Summary: Converters should really be final?
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: daniel.amadei@click21.com.br


Hi!

I'm using BeanUtils to copy properties from one bean to another. When it copies 
from String to boolean it should know that S means true ('sim' = 'yes' in 
portuguese) and N means false ('n�o' = 'no' in portuguese). 

So I was wondering to extend the BooleanConverter to use the existing 
functionality adding one more check as specified above but it's not possible. I 
don't want to recompile the entire bean-utils package as I want to be free to 
upgrade to new releases without worry. And I don't want to do what I'm doing 
now: I copied the entire BeanConverter logic, adding the new chars to the If 
statement. 

So what I'm asking to remove the final qualifier from the converter classes so 
they can be subclassed.

If needed I can create the patches, just let me know.

Daniel

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org