ElementArray requires length

View: New views
2 Messages — Rating Filter:   Alert me  

ElementArray requires length

by David Sisson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

            If you try to deserialize an XML file that does not have the length attribute on an array, you’ll end up with an ArrayIndexOutOfBoundsException.  Would it be better to return a more user friendly exception so it’s easier for the developer/end user to figure out what they’ve done wrong?

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Simple-support mailing list
Simple-support@...
https://lists.sourceforge.net/lists/listinfo/simple-support

Re: ElementArray requires length

by niall.gallagher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
Ya, should really be better than a runtime exception such as ArrayIndexOutOfBounds. Ill fix this.
 
Thanks,
Niall
 
Niall Gallagher
RBS Global Banking & Markets
Office: +44 7879498724

 


From: David Sisson [mailto:David.Sisson@...]
Sent: 21 September 2009 20:08
To: simple-support@...
Subject: [Simple-support] ElementArray requires length

            If you try to deserialize an XML file that does not have the length attribute on an array, you’ll end up with an ArrayIndexOutOfBoundsException.  Would it be better to return a more user friendly exception so it’s easier for the developer/end user to figure out what they’ve done wrong?

 

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Simple-support mailing list
Simple-support@...
https://lists.sourceforge.net/lists/listinfo/simple-support