Re: JTidy exception: IllegalAccessError

Michael Goldberg wrote:
> 
> All,
> 
> I am trying to use jtidy for the first time, but I get an IllegalAccessError
> exception with the following stack trace:
> 
> java.lang.IllegalAccessError: org/w3c/tidy/ParserImpl: field _parseHead is
> inaccessible

Michael --

This is indeed pretty bizarre behavior.  In this case, it looks like the
inner class ParserImpl.ParseHTML is trying to accesss field _parseHead
directly.  However, the code in ParseHTML only accesses this field
through an accessor method but that method is not shown in your stack
trace.

I have seen wierd behavior like this in Microsoft JVMs.  What platform
are you on and what JVM are you using?  Try turning off the jit (-nojit)
and see if you still get this behavior.

HTH,
Gary

Received on Thursday, 21 December 2000 13:37:14 UTC