diff options
author | michelou <michelou@epfl.ch> | 2008-03-11 13:53:09 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2008-03-11 13:53:09 +0000 |
commit | 993a987bd3d75fa47bf4a6f6790d465136fdf486 (patch) | |
tree | 395641543493692379e024e2fa21a56dacbb0538 /src/compiler | |
parent | 83ab996aacd72a6866209aa9983ff4c23e8a5e68 (diff) | |
download | scala-993a987bd3d75fa47bf4a6f6790d465136fdf486.tar.gz scala-993a987bd3d75fa47bf4a6f6790d465136fdf486.tar.bz2 scala-993a987bd3d75fa47bf4a6f6790d465136fdf486.zip |
StringBufferClass -> StringBuilderClass
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index 073e5fd566..bfa35a1550 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -60,10 +60,10 @@ abstract class GenJVM extends SubComponent { */ class BytecodeGenerator { val MIN_SWITCH_DENSITY = 0.7 - val StringBufferClass = "scala.StringBuilder" + val StringBuilderClass = "scala.StringBuilder" val BoxesRunTime = "scala.runtime.BoxesRunTime" - val stringBufferType = new JObjectType(StringBufferClass) + val StringBuilderType = new JObjectType(StringBuilderClass) val toStringType = new JMethodType(JObjectType.JAVA_LANG_STRING, JType.EMPTY_ARRAY) // Scala attributes @@ -1284,9 +1284,9 @@ abstract class GenJVM extends SubComponent { jcode.emitARRAYLENGTH() case StartConcat => - jcode.emitNEW(StringBufferClass) + jcode.emitNEW(StringBuilderClass) jcode.emitDUP() - jcode.emitINVOKESPECIAL(StringBufferClass, + jcode.emitINVOKESPECIAL(StringBuilderClass, JMethod.INSTANCE_CONSTRUCTOR_NAME, JMethodType.ARGLESS_VOID_FUNCTION) @@ -1295,12 +1295,12 @@ abstract class GenJVM extends SubComponent { case REFERENCE(_) | ARRAY(_)=> JObjectType.JAVA_LANG_OBJECT case _ => javaType(el) } - jcode.emitINVOKEVIRTUAL(StringBufferClass, + jcode.emitINVOKEVIRTUAL(StringBuilderClass, "append", - new JMethodType(stringBufferType, + new JMethodType(StringBuilderType, Array(jtype))) case EndConcat => - jcode.emitINVOKEVIRTUAL(StringBufferClass, + jcode.emitINVOKEVIRTUAL(StringBuilderClass, "toString", toStringType) |