[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Closed: (XMLBEANS-141) set methods ignored when xsi:nil=true
From: "Cezar Andrei (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2007-12-17 22:21:43
Message-ID: 9316585.1197930103520.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Cezar Andrei closed XMLBEANS-141.
---------------------------------
Resolution: Won't Fix
This was fixed in 2.x, not enough time to backport it in 1.x line.
> set methods ignored when xsi:nil=true
> -------------------------------------
>
> Key: XMLBEANS-141
> URL: https://issues.apache.org/jira/browse/XMLBEANS-141
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 1.0.3, Version 1.0.4
> Environment: Win2K, sun jdk 1.4.2.07
> Reporter: Jeff Martin
> Assignee: Radu Preotiuc-Pietro
> Priority: Critical
>
> I have a dateTime in one of my schema objects. During processing, the dateTime \
> (hereafter known as enrollment date) has setNil() called on it because it has no \
> value. The text now looks like: <vo:EnrolledOn xsi:nil="true" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> The problem comes when I \
> want to assign a value, so I call: \
> subscription.setEnrolledOn(Calendar.getInstance()); which yields the following \
> representation: <vo:EnrolledOn xsi:nil="true" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2005-04-04T21:27:33.406-04:00</vo:EnrolledOn>
> Which looks odd, since it has a value and has nil="true". The problem is when I \
> call subscription.getEnrolledOn(), I get null instead of the Calendar I set. I did \
> find a workaround in: XmlDateTime xdt = XmlDateTime.Factory.newInstance();
> xdt.set(Calendar.getInstance());
> subscription.xsetEnrolledOn(xdt);
> which yields the following representation:
> <vo:EnrolledOn>2005-04-04T21:27:33.406-04:00</vo:EnrolledOn>
> and subscription.getEnrolledOn() correctly returns a calendar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic