Re: [jibx-users] bug in GenericXMLWriter.java

2005-05-02 Thread Dennis Sosnoski
Thanks for pointing this out, I correct it in the CVS code.
 - Dennis
Jitesh Doshi wrote:
I think I might have found a bug in GenericXMLWriter.java.
The following line ...
   protected void writePrefix(int index) throws IOException {
   try {
   String text = m_prefixes[index];
... should instead be ...
   protected void writePrefix(int index) throws IOException {
   try {
   String text = getNamespacePrefix(index);
... that way it takes into account, the extension namespaces as well. I am
using JiBX bound XML beans with a lot of DOM-based elements embedded in (using
DOMElementMapper). In those case, I get ArrayIndexOutOfBoundsException.
Dennis, what do you think?
--Jitesh
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
 


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


[jibx-users] bug in GenericXMLWriter.java

2005-04-21 Thread Jitesh Doshi
I think I might have found a bug in GenericXMLWriter.java.

The following line ...

protected void writePrefix(int index) throws IOException {
try {
String text = m_prefixes[index];

... should instead be ...

protected void writePrefix(int index) throws IOException {
try {
String text = getNamespacePrefix(index);

... that way it takes into account, the extension namespaces as well. I am
using JiBX bound XML beans with a lot of DOM-based elements embedded in (using
DOMElementMapper). In those case, I get ArrayIndexOutOfBoundsException.

Dennis, what do you think?

--Jitesh


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users