[Swift-commit] r2360 - trunk/src/org/griphyn/vdl/engine
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Dec 8 14:50:54 CST 2008
Author: hategan
Date: 2008-12-08 14:50:53 -0600 (Mon, 08 Dec 2008)
New Revision: 2360
Modified:
trunk/src/org/griphyn/vdl/engine/Karajan.java
Log:
fixed string index out of bounds exception when typechecking an expression involving and array of nonexistent type
Modified: trunk/src/org/griphyn/vdl/engine/Karajan.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/Karajan.java 2008-12-07 03:15:37 UTC (rev 2359)
+++ trunk/src/org/griphyn/vdl/engine/Karajan.java 2008-12-08 20:50:53 UTC (rev 2360)
@@ -1008,6 +1008,9 @@
break;
}
}
+ if ("".equals(actualType)) {
+ throw new CompilationException("Type " + parentType + " is not defined.");
+ }
newst.setAttribute("datatype", actualType);
return newst;
// TODO the template layout for this and ARRAY_SUBSCRIPT are
More information about the Swift-commit
mailing list