[ http://issues.apache.org/jira/browse/TUSCANY-27?page=all ]
Frank Budinsky resolved TUSCANY-27:
-----------------------------------
Resolution: Won't Fix
Hi Fuhwei,
After looking at the impact of doing this, I decided that it's best to leave
the design as it is - i.e., null is used to represent the default (no)
namespace.
Trying to support "" as an alternative/alias requires "".equals(namespace)
checks sprinkled in the code in various places. This affects performance and
also the cleanliness and simplicity of the code. I think it's best to just make
the clear statement that the in SDO, null represents no namespace.
Frank.
> "No targetNamespace" in XSD is not fully functional yet
> -------------------------------------------------------
>
> Key: TUSCANY-27
> URL: http://issues.apache.org/jira/browse/TUSCANY-27
> Project: Tuscany
> Type: Bug
> Components: Java SDO Implementation
> Environment: All platforms
> Reporter: Fuhwei Lwo
> Attachments: NoTargetNamespaceTestCase.java, open-nons.xsd
>
> If I didn't specify "targetNamespace" in my XSD, I assume I can invoke
> DataFactory.INSTANCE.create("", "MyType") or
> DataFactory.INSTANCE.create(null, "MyType") to create a data object of MyType.
> Now, I got the null pointer exception like ..
> Exception in thread "main" java.lang.NullPointerException
> at org.eclipse.emf.ecore.util.EcoreUtil.create(EcoreUtil.java:2760)
> at
> org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl.
> java:56)
> at
> org.apache.tuscany.sdo.helper.DataFactoryImpl.create(DataFactoryImpl.
> java:43)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira