- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    10
- 
        b34
                    Method type restrictions for StringConcatFactory.makeConcat are about return type & maximum number of arguments. This would mean 0 & 1 argument method types are valid. This calls for the definition for concatenation with 0 & 1 params.
Specifically
StringConcatFactory.makeConcat(lookup(),
"name",
MethodType.methodType(String.class));
and
StringConcatFactory.makeConcat(lookup(),
"name",
MethodType.methodType(String.class, String.class));
Note: Though the API refers to JLS 15.18.1 "String Concatenation Operator +", the JLS section only talk about concatenation of 2 arguments.
Specifically
StringConcatFactory.makeConcat(lookup(),
"name",
MethodType.methodType(String.class));
and
StringConcatFactory.makeConcat(lookup(),
"name",
MethodType.methodType(String.class, String.class));
Note: Though the API refers to JLS 15.18.1 "String Concatenation Operator +", the JLS section only talk about concatenation of 2 arguments.
- csr for
- 
                    JDK-8192036 Need to define the behaviour for 0 and 1 argument method type in StringConcatFactory.makeConcat -           
- Closed
 
-