[jboss-jira] [JBoss JIRA] Created: (JBXB-207) Default SchemaBindingResolver impl may loose location/uri to class mapping

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Thu Jun 11 04:10:59 EDT 2009


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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list