# Bug Report

Bret Ewin (bewin@proxicom.com)
Tue, 30 Sep 1997 12:51:35 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Qian Chen: "certificate type"
- Previous message: Jim Sims: "just not getting it......ACL/local file read"

    Date: Tue, 30 Sep 1997 12:51:35 -0400

    From: Bret Ewin <bewin@proxicom.com>

    To: java-security@web2.javasoft.com

    Subject: Bug Report

Owner.addOwner() always returns false. It should return true the first
time an owner is added, and false every other time.

Bret

import java.security.acl.NotOwnerException;
import sun.security.acl.OwnerImpl;
import sun.security.acl.PrincipalImpl;

public class AddOwnerTest
{

public static void main ( String[] argv )
{
PrincipalImpl p1 = new PrincipalImpl("p1");
PrincipalImpl p2 = new PrincipalImpl("p2");
OwnerImpl o = new OwnerImpl(p1);

try
{
System.out.println("T\t" + o.addOwner( p1, p2 ));
System.out.println("F\t" + o.addOwner( p1, p2 ));
}
catch ( NotOwnerException noe )
{
noe.printStackTrace();
}
}

}

- Next message: Qian Chen: "certificate type"
- Previous message: Jim Sims: "just not getting it......ACL/local file read"