I was compiling some existing code and found a problem with java.net.URLDecoder.decode According to the sun jdk1.3 javadocs java.net.URLDecoder.decode should not throw an Exception. The libjava version does. I think decode needs to catch any exception and throw some runtime exceptions accordingly. Helping to make gcj better.