I too had the problem on geotools 2.4, not on trunk. (Using Java 1.5)

Its in a hardcoded unit test, so the developer has no way of "sorting"
anything - it simply needs to pass reliably :-0

what is the officieal position on what versions of java work for 2.4? Is it
limited to 1.4 still?

RA


On Tue, Jun 17, 2008 at 11:19 AM, Jody Garnett <[EMAIL PROTECTED]>
wrote:

> I had problems with this as well recently; I seem to recall that the
> instance of DatatypeConverter changes if you are using Java 6? Are you
> using Java 6?
> I placed try/catch code around this section of code but Justin did not
> accept my patch ...
>
> Java used to let us get away with not having a namespace; now we are
> stuck ... is there any chance you can sort out your namespaces prior to
> use?
> Jody
>
> > I have narrowed this problem down to one line of code in the
> > XSQNameBinding.java file.  For some reason if the variable 'value' does
> not
> > start with "foo" then the code crashes when the QName is initialized. Can
> > someone please assist me with this.  I have pasted the function with the
> > crashing line of code in bold below.  If I am missing something simple
> and
> > being an idiot please point it out to me.
> >
> > public Object parse(InstanceComponent instance, Object value)
> >         throws Exception {
> >     QName qName = DatatypeConverter.parseQName((String) value,
> > namespaceContext);
> >
> >         if (qName != null) {
> >             return qName;
> >         }
> >
> >         if (value == null) {
> >             return new QName(null);
> >         }
> >
> >         String s = (String) value;
> >         int i = s.indexOf(':');
> >
> >         if (i != -1) {
> >             String prefix = s.substring(0, i);
> >             String local = s.substring(i + 1);
> >
> >             return new QName(null, local, prefix);
> >         }
> >
> >         return new QName(null, s);
> >     }
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to