Just tried it with JRE 1.5.0_22 and observed the StackOverflowError (compiling in Eclipse, switched libraries in my build path, verified with System.out.println(System.getProperty("java.version"))). Perhaps an earlier version of Java 5 might do something different.
2009-11-05 18:45:47 UTC in HtmlUnit