commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32496] New: - Converters should really be final?
Date Thu, 02 Dec 2004 16:01:28 GMT
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


Mime
View raw message