Search in sources :

Example 1 with URLDecoder

use of java.net.URLDecoder in project jdk8u_jdk by JetBrains.

the class B6463990 method main.

public static void main(String[] args) {
    boolean except = false;
    try {
        URLDecoder ud = new java.net.URLDecoder();
        String s = ud.decode("%-1", "iso-8859-1");
        System.out.println((int) s.charAt(0));
    } catch (Exception e) {
        except = true;
    }
    if (!except)
        throw new RuntimeException("IllegalArgumentException not thrown!");
}
Also used : URLDecoder(java.net.URLDecoder)

Aggregations

URLDecoder (java.net.URLDecoder)1