Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/JIBX-36 Here is an overview of the issue: --------------------------------------------------------------------- Key: JIBX-36 Summary: Custom unmarshallar unmarshal method always gets passed null object reference Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: JiBX Components: core Versions: 1.0-beta3c Assignee: Reporter: Thomas Jones-Low Created: Mon, 2 Aug 2004 9:17 AM Updated: Mon, 2 Aug 2004 9:17 AM Description: When writing a custom unmarshaller the initial call to IUnmarshaller.unmarshal() alwasy has a null object refererence. This is a problem when the object has been instatiated by the constructor of the enclosing object. For example: The class file: public class Notation { private string name; private HTMLDocument notation; public Notation { notation = new HTMLDocument(); } } The Binding file: <binding> <mapping class="javax.swing.text.html.HTMLDocument" name="comment" marshaller="HTMLListMapper" unmarshaller="HTMLListMapper"> </mapping> <mapping name="notation" class="Notation"> <value name="name" field="name"/> <structure field="comment" usage="optional"/> </mapping> </binding> public class HTMLListMapper implements IMarshaller, IUnmarshaller, IAliasable { public Object unmarshal(Object obj, IUnmarshallingContext ictx); } When HTMLListMapper.unmarshal() gets called, obj is null and the unmarshal method is expected to create the HTMLDocument. What should happen in the HTMLDocument reference from the Notation class should be passed instead. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ jibx-devs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-devs
