Illegal Package-Private Accesses Yet Again!

Michael Koch konqueror@gmx.de
Thu Apr 1 10:55:00 GMT 2004


Am Donnerstag, 1. April 2004 00:21 schrieben Sie:
> >>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:
>
> Michael> Please, please, please, let me submit a real patch for the
> Michael> NIO issue.
>
> Ranjit> For the READ, WRITE, APPEND, EXCL, SYNC and DSYNC flags,
> Ranjit> I think just making them public is good enough, no?
>
> I think so too.  Michael, what do you intend here?
> Or do you just want to wait until the classpath bits are resolved?

Yes, I'm working with Mark Wielaard and Robert Lougher (author of JamVM) 
to get the BIG NIO rewrite Per did into GNU classpath. I have already 
some changes to the code and I would like to commit all in one step to 
libgcj. This can only need a few days now as the code mostly works.

> Ranjit> Ditto for the available( ) method, as read( ), unlock( ),
> Ranjit> size( ), etc. are all public anyway in
> Ranjit> gnu/java/nio/channels/FileChannelImpl and the class itself
> Ranjit> is marked public.
>
> Can't untrusted code open files using these classes?  If so, then
> they have to change somehow, as this is a security hole.

Yes, this has to be checked. I put it on my TODO for the security stuff.


Michael



More information about the Java-patches mailing list