Re: Fix for compiling DOM-Test-Suite with jdk-sun-1.2.2 + next problem.

"Curt Arnold" <[email protected]>
Newsgroups gmane.comp.web.dom.test-suites.general
Message-ID <001d01c24e48$ba48a4d0$a800a8c0@CurtMicron>
> The patch below was necessary, otherwise javac wouldn't compile those 2
files,
> since a final object has to initialized immediately, apparently.

The construct is called a "blank final" and is legal
(http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html
#10931), but there were compiler bugs in the 1.1.x series that would result
in compile failures.  I had not seen it in JDK 1.2.x or later compilers.
However, no big deal in changing it to avoid the compiler bug.

>
> BUILD FAILED
>
> /home/dfaure/src/DOMTS/2001/DOM-Test-Suite/build.xml:358:
javax.xml.transform.TransformerException: java.lang.NullPointerException

I think this is a bug in Xalan.  I've seen similar exceptions with earlier
version, but I thought they had been fixed.  You could switch to a different
XSLT engine (I'd suggest SAXON 6.5.2, http://saxon.sf.net), typically by
removing xalan.jar from Ant's lib directory and replacing it with saxon.jar.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.