diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-06 08:39:33 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-06 08:39:33 +0000 |
commit | 84b6d995fd694669eed8c5df8ca70b6c56288252 (patch) | |
tree | 883b9bdb704e7d0f0578b06b7f80e834137156b1 | |
parent | 35342050b6db180023aa2d4eb63b5a930f6b1c6c (diff) | |
download | scala-84b6d995fd694669eed8c5df8ca70b6c56288252.tar.gz scala-84b6d995fd694669eed8c5df8ca70b6c56288252.tar.bz2 scala-84b6d995fd694669eed8c5df8ca70b6c56288252.zip |
- Added special case for TARGET_INT in genNewArray
-rw-r--r-- | sources/scalac/transformer/Erasure.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scalac/transformer/Erasure.java b/sources/scalac/transformer/Erasure.java index fbc75fc9cd..4b606774ca 100644 --- a/sources/scalac/transformer/Erasure.java +++ b/sources/scalac/transformer/Erasure.java @@ -745,6 +745,11 @@ public class Erasure extends Transformer implements Modifiers { } private Tree genNewArray(int pos, Tree size, Type elemtp) { + if (global.target == global.TARGET_INT) { + global.nextPhase(); + while (!elemtp.symbol().isJava()) elemtp = elemtp.parents()[0]; + global.prevPhase(); + } Tree classname = make.Literal(pos, primitives.getNameForClassForName(elemtp)) .setType(definitions.JAVA_STRING_TYPE); |