X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FMethodGen.java;h=632fc79d91c2721b77c83b9a387800c445bba033;hp=2d3a0fce0c42367676a70d193d95e3338795a828;hb=313d0d7b61cbae37ba11f48b752aebd52be68b5c;hpb=be231cfa8ce0eac52873b9f0f82b8aecca9c458a diff --git a/src/org/ibex/classgen/MethodGen.java b/src/org/ibex/classgen/MethodGen.java index 2d3a0fc..632fc79 100644 --- a/src/org/ibex/classgen/MethodGen.java +++ b/src/org/ibex/classgen/MethodGen.java @@ -110,7 +110,7 @@ public class MethodGen implements CGConst { @param handler The instruction of the excepton handler @param type The type of exception that is to be handled (MUST inherit from Throwable) */ - public final void addExceptionHandler(int start, int end, int handler, Type.Object type) { + public final void addExceptionHandler(int start, int end, int handler, Type.Class type) { exnTable.put(type, new ExnTableEnt(start, end, handler, cp.add(type))); } @@ -118,7 +118,7 @@ public class MethodGen implements CGConst { NOTE: This isn't enforced by the JVM. This is for reference only. A method can throw exceptions not declared to be thrown @param type The type of exception that can be thrown */ - public final void addThrow(Type.Object type) { + public final void addThrow(Type.Class type) { thrownExceptions.put(type, cp.add(type)); }