It should be equivalent of having a String initialized with the result of String.valueOf() as constant argument.
Rémi ----- Mail original ----- > De: "Claes Redestad" <claes.redes...@oracle.com> > À: "Aleksey Shipilev" <sh...@redhat.com>, "Paul Sandoz" > <paul.san...@oracle.com> > Cc: "core-libs-dev" <core-libs-dev@openjdk.java.net> > Envoyé: Mardi 22 Août 2017 19:10:29 > Objet: Re: RFR: 8186500: StringConcatFactory.makeConcatWithConstants throws > AssertionError when recipe contains > non-String constants > On 2017-08-22 18:34, Aleksey Shipilev wrote: >>> http://cr.openjdk.java.net/~redestad/8186500/jdk.01/ >> Still think testing for {null, Class, MethodHandle, MethodType} would cover >> more >> interesting corner >> cases. > > Do you mean as constant arguments? And what should happen in each of > these cases? > > /Claes