[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-devs
Subject:    [jibx-devs] [jira] Updated: (JIBX-173) pre-set and pre-get do not
From:       "Dennis Sosnoski (JIRA)" <jira () codehaus ! org>
Date:       2008-05-06 0:21:22
Message-ID: 29952900.1210033282696.JavaMail.haus-jira () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]


     [ http://jira.codehaus.org/browse/JIBX-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Dennis Sosnoski updated JIBX-173:
---------------------------------

    Priority: Minor  (was: Major)
    Assignee: Dennis Sosnoski

I can't really see this as a major problem, since you're talking about a very unusual \
case where a class is used in the binding without any data present. The proposed \
work-around would unfortunately have side-effects which would probably create new \
problems, so I'm not willing to implement it for such an unusual case. So I'm \
lowering the severity but leaving the bug report open.

> pre-set and pre-get do not work withount a value binding inside the mapping.
> ----------------------------------------------------------------------------
> 
> Key: JIBX-173
> URL: http://jira.codehaus.org/browse/JIBX-173
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.5
> Environment: Windows XP, Java 6.0
> Reporter: dan schmidt
> Assignee: Dennis Sosnoski
> Priority: Minor
> Attachments: jibx-bug.zip
> 
> 
> the pre-set and pre-get methods do not get called if there are no attributes set, \
> as in the following binding: <binding>
> 	<mapping name="person" class="starter.Person" pre-get="preGet"
> 		pre-set="preSet">
> <!-- uncomment next line and it starts working -->
> <!--
> <value name="place-holder" field="placeholder" style="attribute" />
> -->
> 	</mapping>
> </binding>
> I have attached a eclipse project that displays this bug. I found one workaround \
> was adding the collowing code to ObjectBinding.java:  public boolean hasAttribute() \
> {  return super.hasAttribute() || (m_preGetMethod != null)
> 				|| (m_preSetMethod != null) || (m_postSetMethod != null);
> 	}
> I hope that is more helpful than confusing.
> to run the tests, run the ant task build-and-run.xml. I tried making it a junit, \
> and the recompiling nature of this product made junits too complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: \
                http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic