RFR: 8014719: HttpClient/ProxyTest.java failing with IAE HttpURLPermission.parseURI (and spec changes to HttpURLPermission)

Michael McMahon michael.x.mcmahon at oracle.com
Wed Oct 2 09:12:55 PDT 2013


Hi,

This is primarily a spec. change to the new HttpURLPermission class.

The main changes are:

1. Rename java.net.HttpURLPermission to java.net.URLPermission.

Even though the class is clearly intended for use with Http/s URLs it 
isn't restricted
to those URL schemes.

2. Add some of the capabilities from SocketPermission to this class too, 
namely:
     - support for wildcards eg "*.foo.com"
     - support for port ranges eg "4000-5000", or "5000-"

There are a couple of other minor changes, such as switching to use
the limited doPrivileged() API.

Webrev at: http://cr.openjdk.java.net/~michaelm/8014719/01/webrev/

Thanks,
Michael.



More information about the net-dev mailing list