ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slawek Zachcial" <>
Subject Javadoc problems : some findings
Date Thu, 03 Feb 2000 23:11:21 GMT
Hello "ANT-ers" !

I got ANT from and tried to
Javadoc2 task (jakarta-tools_20000203111218.tar.gz).
For me this task does simply noting. So I looked a little bit at it and
that's what
I found:

1. Javadoc2's getFiles function constructs incorrectly "cwd" local variable.
2. File names instead of File objects are put on the list in this function.
3. JavaReader class is not able to skip comments like /** some_comments_here
4. In Java's run function, InvocationTargetException's target exception can
    other than "Exit not allowed" exception, ex: access denied
java.lang.RuntimePermission setContextClassLoader)
5. There are security problems with the usage of
class (as the one above).
    To make it work that's what I added to java.policy:
        permission java.lang.RuntimePermission "setContextClassLoader";
        permission java.util.PropertyPermission "user.language", "write";
6. But still javadoc tries to exit with System.exit which causes the handled
"Exit not allowed" exception.

Maybe the security issues can be resolved by AntSecurityManager ?

I attach modified and Lines to remove are commented
with '//--' and added lines
have at the end '//++'.

Can anyone look at the changes and incorporate them if it's OK?


PS. I'm using JDK 1.2.2 and JDK 1.3 beta on Windows NT

View raw message