From 74fa0daa1afb949ad88b25249c027238f271ad79 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 28 Jun 2005 16:11:03 +0000 Subject: Throw an exception if the jump width adjustment... Throw an exception if the jump width adjustment fails --- sources/scalac/backend/jvm/GenJVM.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sources/scalac') diff --git a/sources/scalac/backend/jvm/GenJVM.java b/sources/scalac/backend/jvm/GenJVM.java index 2ba2fb1a6b..3ea0cded19 100644 --- a/sources/scalac/backend/jvm/GenJVM.java +++ b/sources/scalac/backend/jvm/GenJVM.java @@ -222,7 +222,8 @@ public class GenJVM { break; } catch (JCode.OffsetTooBigException e) { ctx1.clazz.removeMethod(ctx1.method); - assert !retry; + if (retry) + throw Debug.abort("method too big", sym, e); retry = true; } } while (retry); -- cgit v1.2.3