You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by sa...@in.fiorano.com on 2005/08/14 18:21:46 UTC

Found bug in XMLSchema API

I have found a bug in XMLSchema API.

This bug is regarding the searching of type-definitions in XSModel.

there are two ways to search a type definition:

first approach:
  XSModel.getTypeDefinition(name, namespace)

second appraoch
  XSModel.getComponentesByNamespace(XSContants.TYPE_DEFINITION, namespace)
         .itemByName(namespace, name)

The first approach works fine.
but second appraoch fails if i pass non-interned strings as arugments.
the most irritating thing is:
   once second approach is used with non-interned string, after that
   passing interned string also fails.

I attached a testcase to reproduce this issue. This bug is very serious for
my application because my application everywhere uses ClarkNames.

Thanks
Santhosh Kumar T
Sr Software Engineer
Fiorano Software Inc.