Skip to content

Commit 11bbccb

Browse files
committed
Redo concatArgs
1 parent 2882ee7 commit 11bbccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ private static MethodHandle generate(Lookup lookup, MethodType args, String[] co
11381138
}
11391139
}
11401140
final MethodType concatArgs = erasedArgs;
1141-
SoftReference<MethodHandlePair> weakConstructorHandle = CACHE.get(erasedArgs);
1141+
SoftReference<MethodHandlePair> weakConstructorHandle = CACHE.get(concatArgs);
11421142
if (weakConstructorHandle != null) {
11431143
MethodHandlePair handlePair = weakConstructorHandle.get();
11441144
if (handlePair != null) {

0 commit comments

Comments
 (0)