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 2014/04/25 18:12:56 UTC

svn commit: r1590072 - /uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java

Author: schor
Date: Fri Apr 25 16:12:55 2014
New Revision: 1590072

URL: http://svn.apache.org/r1590072
Log:
[UIMA-3774] needed for test scaffolding

Modified:
    uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java

Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java?rev=1590072&r1=1590071&r2=1590072&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java (original)
+++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java Fri Apr 25 16:12:55 2014
@@ -126,7 +126,10 @@ public class TOP_Type {
 		casImpl = null;
 		lowLevelTypeChecks = false;
 		lowLevelArrayBoundChecks = false;
-		throw new RuntimeException("Internal Error-this constructor should never be called.");
+		useExistingInstance = true;
+		ll_cas = null;
+		// used for test mocking
+//		throw new RuntimeException("Internal Error-this constructor should never be called.");
 	}
 
 	/*