From 57f8032e5579f575ef526b02957fc937f6efbb62 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 3 Jun 2005 00:56:07 +0000 Subject: [PATCH] stubs for functions which should not be invoked on Type.Array darcs-hash:20050603005607-5007d-e7fd022de2ffec6c61060bf70798decd8cb8581c.gz --- src/org/ibex/classgen/Type.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/ibex/classgen/Type.java b/src/org/ibex/classgen/Type.java index 29d946a..29301d3 100644 --- a/src/org/ibex/classgen/Type.java +++ b/src/org/ibex/classgen/Type.java @@ -98,6 +98,8 @@ public class Type { protected Array(Type t, int dim) { super(_initHelper(t, dim)); } public Type.Array asArray() { return this; } public boolean isArray() { return true; } + String internalForm() { throw new Error("Type.Array does not have an internalForm()"); } + String[] components() { throw new Error("Type.Array does not have components()"); } private static String _initHelper(Type t, int dim) { StringBuffer sb = new StringBuffer(t.descriptor.length() + dim); for(int i=0;i