Author: schor
Date: Fri Jan 13 14:39:49 2017
New Revision: 1778601

URL: http://svn.apache.org/viewvc?rev=1778601&view=rev
Log:
[UIMA-5225] add referenced but unused method for old v2 style jcasgen classes 
to reduce (ignorable but still annoying) compile errors during migration phase

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

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java?rev=1778601&r1=1778600&r2=1778601&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
 Fri Jan 13 14:39:49 2017
@@ -143,6 +143,49 @@ public interface JCas extends AbstractCa
    */
   Feature getRequiredFeature(Type t, String s) throws CASException;
 
+  /*
+   * Internal Use - look up a feature-name-string in the CAS type system and 
returns the Cas Feature
+   * object. If the feature isn't found, adds an exception to the errorSet but 
doesn't throw
+   * @deprecated only for V2 compiling
+   */
+  @Deprecated
+  default Feature getRequiredFeatureDE(Type t, String s, String rangeName, 
boolean featOkTst) {
+    throw new UnsupportedOperationException("not supported in UIMA v3");
+  }
+
+  /*
+   * Internal Use - sets the corresponding Java instance for a Cas instance
+   * @deprecated only for V2 compiling
+   */
+  @Deprecated
+  default void putJfsFromCaddr(int casAddr, FeatureStructure fs) {
+    throw new UnsupportedOperationException("not supported in UIMA v3");
+  } 
+
+  /*
+   * Internal Use - sets the corresponding Java instance for a Cas instance
+   * @deprecated only for V2 compiling
+   */
+  default <T extends TOP> T getJfsFromCaddr(int casAddr) {
+    throw new UnsupportedOperationException("not supported in UIMA v3");
+  } 
+
+  /*
+   * Internal Use. 
+   * @deprecated only for V2 compiling
+   */
+  default void checkArrayBounds(int fsRef, int pos) {
+    throw new UnsupportedOperationException("not supported in UIMA v3");
+  }
+
+  /*
+   * Internal Use - throw missing feature exception at runtime.
+   * @deprecated only for V2 compiling
+   */
+  default void throwFeatMissing(String feat, String type) {
+    throw new UnsupportedOperationException("not supported in UIMA v3");
+  }
+  
   /**
    * @deprecated As of v2.0, use {#getView(String)}. From the view you can 
access the Sofa data, or
    *             call {@link #getSofa()} if you truly need to access the 
SofaFS object.


Reply via email to