Hi all

Ant's master branch is down to a single test failure apart from the JAI
problems on my local machine. An error I've overlooked when I initially
reported the problems I've found

It looks as if <https://bz.apache.org/bugzilla/show_bug.cgi?id=52382>
was back. You can't use Xalan's redirect extension when a
SecurityManager is set.

The reason is that since JAXP 1.4 XMLConstants.FEATURE_SECURE_PROCESSING
has been introduced and this one gets enabled (and you can't disable it)
if a SecurityManager is set. The fix we applied back then is a hack that
sets _isNotSecureProcessing in TransformerFactoryImpl via reflection -
this works fine for JDK 7 and 8, but breaks now.

Rather than adding another layer of reflection (likely need to undo the
changes to _featureManager from
http://hg.openjdk.java.net/jdk9/jdk9/jaxp/file/057e5d7f6572/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl.java#l259
) I'd prefer to figure out a way that allows the following scenario:

* User is using an IDE which has enabled a SecurityManager to run
  Ant
* User wants to run an XSLT transform that uses Xalan's redirect
  extension

without any hacks. Running Ant's <junitreport> is one example of such a
transform.

Cheers

        Stefan

PS and completely unrelated: while adding support for javac's -h option
I realized the option wasn't mentioned inside javac's manual page at
all. Only javac -help talks about it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to