JTidy access error?

A number of people have been reporting this error when using JTidy with HttpUnit and JUnit:

java.lang.IllegalAccessError: try to access field
org.w3c.tidy.ParserImpl._parseHead from class
org.w3c.tidy.ParserImpl$ParseHTML
	at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
 	at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
 	at org.w3c.tidy.Tidy.parse(Tidy.java)
 	at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
 	at com.meterware.httpunit.ReceivedPage.<init>(ReceivedPage.java:43)
 	at
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:351)
 	at
com.meterware.httpunit.WebResponse.getFrames(WebResponse.java:334)
 	at
com.meterware.httpunit.WebResponse.getFrameNames(WebResponse.java:97)
 	at
com.meterware.httpunit.WebConversation.getResponse(WebConversation.java:98)
 	at ExampleTest.testWelcomePage(ExampleTest.java:39) 


Now ParserImpl does not actually access _parseHead directly, but it does call getParseHead() to get it (line 140). This looks legitimate to me, but I wonder if there is some kind of optimization happening that might not work well with certain VMs or classloaders. Any ideas?

------------------------------------------------------------------------
Russell Gold                     | "... society is tradition and order
russgold@acm.org                 | and reverence, not a series of cheap
                                 | bargains between selfish interests."
http://httpunit.sourceforge.net  |   - Poul Anderson, "Iron"

Received on Monday, 5 February 2001 15:50:09 UTC