>exclude IncrementalSAXSource_Xerces if xerces is not detected

Ah. Didn't remember to check the makefile. Mea culpa; thanks for catching
it.

>comment-out the "main" in IncrementalSAXSource_Filter.java ( it is a
>  test, but has deps on xerces )

Ah again. I noticed someone had commented it out but hadn't known why. We
can recode that at some point to avoid the problem...

> don't try to load the compiler in synthetic/JavaUtils

I don't think synthetic is currently being used; I brought it in as part of
my own experiments in trying to compile stylesheets -- which we never
really followed through on, and which is being set aside in favor of the
XSLTC contribution.

The JavaUtils code which supports the synthetic package is supposed to be
clever enough to check whether sun.tools.javac.Main is available, and fall
back on a command-line compilation if not. But it was doing so via a
class-not-found exception, and thus had compile-time dependencies. The
Right Fix would probably be to switch it to using reflection; that would
eliminate the runtime dependency yet permit taking advantage of this API
when it does exist.

The synthetic class package is rough around the edges -- I architected more
than I was using, and sketched more than I architected, so there's a
significant amount there which hasn't been tested -- but I have found it
useful in several projects, and the comments do provide guidance on what
still needs to be done. I'd have no objection to moving it to a commons
area if folks think it's interesting enough for that to be worthwhile. If
there isn't interest in using it, it might be easier to just declare it
dead code.


Reply via email to