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 2005/07/13 22:35:14 UTC

DO NOT REPLY [Bug 35723] New: - [betwixt] [PATCH] add support for non-public setters

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=35723>.
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=35723

           Summary: [betwixt] [PATCH] add support for non-public setters
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Betwixt
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: bugzilla.e.wuuza@xoxy.net


I have a model where certain setters are protected in order to enforce a certain
usage pattern.  (Parent.addChild(child) calls child.setParent(this), so I don't
want child.setParent public.)  Anyway, I could not round-trip this model with
Betwixt without changing the setters to public.  The attached patch adds support
for forcing a method accessible when using a custom updater, which solves my
problem.  I added this to an existing test case, which also shows its usage. 
The test as is wasn't working and was off, but I turned it back on and only
removed the offending part.  I don't know why it wasn't working but didn't get
into it.  I had to do with custom updaters for adders.  This patch doesn't do
anything for non-public collection adders.

This patch does not cause any test failures, and solves my problem, but I'll let
others judge how well it fits into the existing code and whether it fits the
spirit of Betwixt.

-- 
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