On 16/07/2020 11:53, Baesken, Matthias wrote:
Hello, recent change
https://hg.openjdk.java.net/jdk/jdk/rev/9e70cd55ae08
8230613: Better ASCII conversions
Adjusted one place in file Punycode.java to throw the declared
ParseException in
public static StringBuffer encode(StringBuffer src, boolean[] caseFlags)
throws ParseException{ ... }
I think we should better adjust the remaining throw in the same method
as well to a ParseException . See small patch below.
Should I open a JBS issue for this ?
I wonder if it is possible to create a test case that uses IDN.toASCII
and trickles this case in Punnycode. In passing, it might be that the
IAE specified by toASCII needs clarification for the additional cases
where it will reject input.
-Alan.