You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2015/11/09 20:44:06 UTC

svn commit: r1713523 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java

Author: schor
Date: Mon Nov  9 19:44:06 2015
New Revision: 1713523

URL: http://svn.apache.org/viewvc?rev=1713523&view=rev
Log:
[UIMA-4673] fix some built-in type impl setups

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java?rev=1713523&r1=1713522&r2=1713523&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java Mon Nov  9 19:44:06 2015
@@ -448,7 +448,7 @@ public class TypeSystemImpl implements T
     // Add basic data types.
     intType = new TypeImplPrimitive(CAS.TYPE_NAME_INTEGER, this, topType, int.class);
     floatType = new TypeImplPrimitive(CAS.TYPE_NAME_FLOAT, this, topType, float.class);
-    stringType = new TypeImplPrimitive(CAS.TYPE_NAME_STRING, this, topType, String.class);
+    stringType = new TypeImplString(CAS.TYPE_NAME_STRING, this, topType, String.class);
     
     // Add arrays.
     arrayBaseType = new TypeImpl(CAS.TYPE_NAME_ARRAY_BASE, this, topType);
@@ -520,7 +520,7 @@ public class TypeSystemImpl implements T
     startFeat = (FeatureImpl) addFeature(CAS.FEATURE_BASE_NAME_BEGIN, annotType, intType, false);
     endFeat = (FeatureImpl) addFeature(CAS.FEATURE_BASE_NAME_END, annotType, intType, false);
     
-    docType = new TypeImpl(CAS.TYPE_NAME_DOCUMENT_ANNOTATION, this, annotType);
+    docType = new TypeImplAnnot(CAS.TYPE_NAME_DOCUMENT_ANNOTATION, this, annotType, Annotation.class);
     langFeat = (FeatureImpl) addFeature(CAS.FEATURE_BASE_NAME_LANGUAGE, docType, stringType, false);
     
     javaObjectType = new TypeImplJavaObject(CAS.TYPE_NAME_JAVA_OBJECT, this, topType, Object.class);