diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-06-28 16:11:03 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-06-28 16:11:03 +0000 |
commit | 74fa0daa1afb949ad88b25249c027238f271ad79 (patch) | |
tree | de2c7be11430ff34ccab2974bcb80f4562dd5ab0 /sources | |
parent | 1b61b60d0e087be4c775b1171e919263218e7686 (diff) | |
download | scala-74fa0daa1afb949ad88b25249c027238f271ad79.tar.gz scala-74fa0daa1afb949ad88b25249c027238f271ad79.tar.bz2 scala-74fa0daa1afb949ad88b25249c027238f271ad79.zip |
Throw an exception if the jump width adjustment...
Throw an exception if the jump width adjustment fails
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/backend/jvm/GenJVM.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |