addon to 8230613: Better ASCII conversions ?

Alan Bateman Alan.Bateman at oracle.com
Thu Jul 16 13:43:53 UTC 2020


On 16/07/2020 13:19, Baesken, Matthias wrote:
> Hi Alan, I do not have such a test case .
> Is there one for the  change 8230613 ?
>
> The only call to Punycode.encode in IDN.java  is  below and the coding intends to catch java.text.ParseException  from  Punycode.encode
> and then throws an IllegalArgumentException . I see nothing  regarding  RuntimeException  in IDN .
>
Tests for changes in security updates are not included in the jdk repo.

IDN.toASCII only specifies IAE so it would be useful to find input that 
tickles other (non-resource) exceptions. Aleksei tells me that he 
couldn't find input that would cause this so this is why it was not 
changed at the time.

-Alan


More information about the core-libs-dev mailing list