This is an automated email from the ASF dual-hosted git repository.

emilles pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new d25486d370 GROOVY-11564: SC: `StringGroovyMethods#plus` for string 
concat fallback
d25486d370 is described below

commit d25486d370f313af90b8e01b6f141d3679929660
Author: Eric Milles <[email protected]>
AuthorDate: Sun Feb 9 09:04:32 2025 -0600

    GROOVY-11564: SC: `StringGroovyMethods#plus` for string concat fallback
---
 .../org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
 
b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
index d4b3608446..6ee4490621 100644
--- 
a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
+++ 
b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesCallSiteWriter.java
@@ -755,7 +755,7 @@ public class StaticTypesCallSiteWriter extends 
CallSiteWriter {
         visitBoxedArgument(arguments);
         int m2 = operandStack.getStackLength();
         MethodVisitor mv = controller.getMethodVisitor();
-        mv.visitMethodInsn(INVOKESTATIC, 
"org/codehaus/groovy/runtime/DefaultGroovyMethods", "plus", 
"(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;", false);
+        mv.visitMethodInsn(INVOKESTATIC, 
"org/codehaus/groovy/runtime/StringGroovyMethods", "plus", 
"(Ljava/lang/CharSequence;Ljava/lang/Object;)Ljava/lang/String;", false);
         operandStack.replace(STRING_TYPE, m2 - m1);
     }
 

Reply via email to