# Re: Bug Report

David Brownell (db@Eng)
Fri, 19 Dec 1997 19:57:57 -0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jose Ramon Huerga: "Javakey: could not initialize scope"
- Previous message: Bjarne Rasmussen: "Class file encryption?"

    Date: Fri, 19 Dec 1997 19:57:57 -0800

    From: David Brownell <db@Eng>

    To: Bret Ewin <bewin@proxicom.com>

    Subject: Re: Bug Report

This is a multi-part message in MIME format.
--------------E339E4AA28D9EE38F6BC392A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thanks for the note, there's a bug there but it's not what
you think! The deal is that there can be multiple owners,
and the "true" return is for the case where the owner you
wanted to add was already listed as an owner. The bug, then,
was that "true" was never returned.

I don't know if the JDK will fix this; please file a bug through
regular channels. I think that the http://www.javasoft.com/jdc
(the Java Developer's Connection) has a way for you to file bugs.

- Dave

On Tue, 30 Sep 1997 12:51:35, Bret Ewin wrote:
>
> 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();
> }
> }
>
> }
--------------E339E4AA28D9EE38F6BC392A
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for David Brownell
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: David Brownell
n: Brownell;David
org: <img src="http://www.javasoft.com/images/logos/javalogo52x88.gif">
adr: Sun Microsystems, Inc.;;901 San Antonio Rd, UCUP 02-206;Palo Alto;CA;94303;USA
email;internet: db@eng.sun.com
title: Staff Engineer<br>JavaServer Technologies
tel;work: +1-408-343-1729
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard

--------------E339E4AA28D9EE38F6BC392A--

- Next message: Jose Ramon Huerga: "Javakey: could not initialize scope"
- Previous message: Bjarne Rasmussen: "Class file encryption?"