Code (Pre-)Review for JEP 280: Indify String Concat

Aleksey Shipilev aleksey.shipilev at
Fri Nov 27 17:35:34 UTC 2015

Hi Andrej,

On 11/27/2015 03:29 PM, Andrej Golovnin wrote:
> src/java.base/share/classes/java/lang/invoke/
> The inner class Key is final. But the inner classes Recipe and
> RecipeElement are not final. Why?
> The #equals method of the Recipe class has this line:
> 295             return elements.equals(recipe.elements);
> where elements is a list of RecipeElements. But RecipeElement does not
> implement the #equals method. Is it intended or a mistake?
> I think, the RecipeElement class must implement the #equals and
> #hashCode methods. In other case the cache will not work as expected.

Ow! Thanks, these are fixed in the updated webrevs!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the compiler-dev mailing list