[Swift-commit] r7888 - trunk/src/org/griphyn/vdl/mapping/nodes
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Thu May 29 23:18:38 CDT 2014
Author: hategan
Date: 2014-05-29 23:18:38 -0500 (Thu, 29 May 2014)
New Revision: 7888
Modified:
trunk/src/org/griphyn/vdl/mapping/nodes/RootClosedPrimitiveDataNode.java
trunk/src/org/griphyn/vdl/mapping/nodes/RootFuturePrimitiveDataNode.java
Log:
avoid stack overflow when getMapper is called on a primitive node
Modified: trunk/src/org/griphyn/vdl/mapping/nodes/RootClosedPrimitiveDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/nodes/RootClosedPrimitiveDataNode.java 2014-05-29 20:51:00 UTC (rev 7887)
+++ trunk/src/org/griphyn/vdl/mapping/nodes/RootClosedPrimitiveDataNode.java 2014-05-30 04:18:38 UTC (rev 7888)
@@ -102,6 +102,11 @@
}
@Override
+ public Mapper getMapper() {
+ throw new UnsupportedOperationException("Primitive types do not have a mapper");
+ }
+
+ @Override
public void closeArraySizes() {
// does not apply
}
Modified: trunk/src/org/griphyn/vdl/mapping/nodes/RootFuturePrimitiveDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/nodes/RootFuturePrimitiveDataNode.java 2014-05-29 20:51:00 UTC (rev 7887)
+++ trunk/src/org/griphyn/vdl/mapping/nodes/RootFuturePrimitiveDataNode.java 2014-05-30 04:18:38 UTC (rev 7888)
@@ -94,6 +94,11 @@
}
@Override
+ public Mapper getMapper() {
+ throw new UnsupportedOperationException("Primitive types do not have a mapper");
+ }
+
+ @Override
public void closeArraySizes() {
// does not apply
}
More information about the Swift-commit
mailing list