[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Resolved: (XMLBEANS-280) XmlBeans.NO_TYPE initialized not
From:       "Wing Yew Poon (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2009-10-26 19:08:59
Message-ID: 1365513497.1256584139780.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Wing Yew Poon resolved XMLBEANS-280.
------------------------------------

    Resolution: Duplicate

Duplicate of XMLBEANS-285.

> XmlBeans.NO_TYPE initialized not correctly
> ------------------------------------------
> 
> Key: XMLBEANS-280
> URL: https://issues.apache.org/jira/browse/XMLBEANS-280
> Project: XMLBeans
> Issue Type: Bug
> Components: XmlObject
> Affects Versions: Version 2.1
> Environment: Vession 2.1.0
> Reporter: Valery Gorbunov
> 
> XmlBeans.NO_TYPE initialized not correctly if working with XmbBeans begins with 
> org.apache.xmlbeans.impl.schema.BuiltinSchemaTypeSystem class.
> Test cases:
> Correct initialization:
> package mypackage;
> import junit.framework.TestCase;
> import org.apache.xmlbeans.XmlBeans;
> import org.apache.xmlbeans.impl.schema.BuiltinSchemaTypeSystem;
> public class XMLTest extends TestCase{
> 	
> 	public XMLTest() {
> 		super();
> 	}
> 	public XMLTest(String name) {
> 		super(name);
> 	}
> 	public void test2(){
> 		assertNotNull(XmlBeans.NO_TYPE);
> 		assertNotNull(BuiltinSchemaTypeSystem.ST_NO_TYPE);
> 	}
> }
> Incorrect initialization.
> package mypackage;
> import junit.framework.TestCase;
> import org.apache.xmlbeans.XmlBeans;
> import org.apache.xmlbeans.impl.schema.BuiltinSchemaTypeSystem;
> public class XMLTestWithFail extends TestCase{
> 		public XMLTestWithFail() {
> 			super();
> 		}
> 		public XMLTestWithFail(String name) {
> 			super(name);
> 		}
> 	public void test(){
> 		BuiltinSchemaTypeSystem.get();
> 		assertNotNull(XmlBeans.NO_TYPE);
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic