]
Alexey Loubyansky closed JBXB-207.
----------------------------------
Resolution: Done
Done.
Default SchemaBindingResolver impl may loose location/uri to class
mapping
--------------------------------------------------------------------------
Key: JBXB-207
URL:
https://jira.jboss.org/jira/browse/JBXB-207
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.1.GA
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
MultiClassSchemaResolver and DefaultSchemaResolver use WeakHashMap for uriToClass and
schemaLocationToClass maps. Both of them are supposed to contain mappings set by a user
using public methods mapLocationToClass(String schemaLocation, Class<?> clazz),
mapURIToClass(String nsUri, Class<?> clazz), etc. None of the maps is used as an
internal cache during schema binding resolution, i.e. if a schema binding is resolved w/o
a user-provided mapping the mapping could be added/cached into those maps (successfully
resolved schemas are cached by their ns URI instead).
So, the fact that a user-provided mapping can disappear is confusing and wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: