Date: Tue, 11 Aug 1998 11:19:05 -0700 (PDT)
From: schemers@Eng
To: Robert Watson <rwatson@tis.com>
Subject: Re: jdk1.2beta3/4 changes in codeBase interpretation for permissions
In-Reply-To: <Pine.BSF.3.96.980811121742.23579A-100000@celadon.hq.tis.com>
Robert Watson writes:
> This email is with regards to a change moving from jdk1.2beta3 to jdk1.2beta4.
> Under 1.2beta3, we were able to specify permissions to apply to locally loaded
> code by using the "file:/" codebase in the Java policy file. Under
> jdk1.2beta4, however, this no longer appears to work. Here is some source
> code and some sample policy files:
This should be documented in the policy docs. Instead of:
grant codeBase "file:/" {
You need to use:
grant codeBase "file:/-" {
This is the same syntax the FilePermission uses. We had a number of
requests to make this change, in order to make it explict.
roland