[ http://jira.codehaus.org/browse/JIBX-93?page=all ]
     
Dennis Sosnoski resolved JIBX-93:
---------------------------------

     Assign To: Dennis Sosnoski
    Resolution: Won't Fix

This behavior is by design for JiBX. Part of the reason for this is that JiBX 
reuses existing objects where available, so good programming practice says it 
should initialize all fields based on the input (rather than leaving their 
states indeterminant). If you'd like other options, please enter an enhancement 
request.

See http://jira.codehaus.org/browse/JIBX-35 for a related discussion.

> missing optional attribute replaces value of the java field with its default 
> value
> ----------------------------------------------------------------------------------
>
>          Key: JIBX-93
>          URL: http://jira.codehaus.org/browse/JIBX-93
>      Project: JiBX
>         Type: Bug

>   Components: core
>     Versions: 1.0-RC2
>  Environment: jdk 1.5
>     Reporter: Maros Ivanco
>     Assignee: Dennis Sosnoski

>
>
> if the binding is:            
> <value name="parallelism-level" field="parallelismLevel" style="attribute" 
> usage="optional" />
> and java field is initialized:
> private int parallelismLevel=1;
> and XML instance does not contain attribute parallelism-level, then, after 
> unmarshalling, the parallelismLevel==0

-- 
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to