dev@jaxb.java.net

Question about (fixed) bug 286

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Fri, 28 Mar 2008 15:35:39 -0700

I have one question and one follow-up comment regarding resolved issue 286:

https://jaxb.dev.java.net/issues/show_bug.cgi?id=286

Question is: has this been included in a JDK 1.6 update yet? I suspect
not, as of u5? If so, is there a chance that this might be included in
one of later update releases? This would be nice, since performance problem
is quite significant based on my testing.

Secondly: one of underlying things mentioned (exception thrown by URL
constructor) may or may not have been addressed yet. Basically, I
suspect this problem (internally caught exception for trying to construct
URL from null) occurs if no system-id is accessible via underlying stax
reader. I was able to work around the problem by specifically passing
a bogus (but valid) system-id when construct XMLStreamReader; but
usually I wouldn't bother tring to pass a system-id if it's received over
network or so.
It would be great if implementation would at least recognize that
null/"" system-id
can not be converted to a legal URL via URL constructor: instead, it could use
a dummy String to denote that it's missing; or use CWD; anything is faster than
catching the exception.

-+ Tatu +-