Release 1.9.7 of NekoHTML is now available.
Besides a few bug fixes, the main changes are internal: no reflection is used any more to ensure compatibility with different Xerces versions having different and incompatible methods. I’ve introduced the usage of a “bridge” per Xerces version inspired from Rhino’s VMBridge. It was a really interesting exercise to set this up and to compile and test it correctly (furthermore with JDK 1.3 compatibility).
Daniel Gredler said,
April 7, 2008 at 2:15 pm
In case anyone else is interested in the bridge code (as I was), here’s the link: http://nekohtml.svn.sourceforge.net/viewvc/nekohtml/trunk/src/org/cyberneko/html/xercesbridge/
Marc Guillemot said,
April 7, 2008 at 2:55 pm
Links to the VMBridge in Rhino:
http://lxr.mozilla.org/mozilla/source/js/rhino/src/org/mozilla/javascript/VMBridge.java
and for instance
http://lxr.mozilla.org/mozilla/source/js/rhino/src/org/mozilla/javascript/jdk15/VMBridge_jdk15.java