RE: Bug in Vector.contains() (Was: 'cd' command with filesy stem)

Lorne Smith <Lorne.Smith-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
The Vector class does not have a "get" method.  Are you using a Hashtable
perhaps?  If you are, keep in mind that "get" operates on a key and
"contains" operates on a value.  These are usually two different objects so
the functions should behave differently.

--Lorne

> -----Original Message-----
> From: Shawn Silverman [mailto:[email protected]]
> Sent: Monday, February 16, 2004 3:34 PM
> To: Lorne Smith
> Cc: tini-6tN4nzCoH/[email protected]
> Subject: Re: Bug in Vector.contains() (Was: [TINI]'cd' command with
> filesystem)
> 
> 
> Hello.  I found the problem.  "Vector.contains(name)" returns 'false' 
> while "myVector.get(name) != null" returns 'true'.  Could 
> this be a bug 
> in Vector.contains()?
> 
> Thanks,
> 	-Shawn
> 
> On 16-Feb-04, at 1:37 PM, Lorne Smith wrote:
> 
> > I just tested the cd command with the NetworkFileSystem 
> example (App. 
> > Note
> > 709) and it works fine.  Check your driver code for the following 
> > functions:
> >
> > public boolean exists(String fileName)
> > public boolean isDirectory(String fileName)
> > public boolean canRead(String fileName, byte uid)
> >
> > Each will be called with an empty string as the fileName 
> parameter.  
> > If any
> > of these return false, you will not be able to complete the 
> cd command.
> > This gives the driver a chance to grant or deny access to 
> mount point 
> > as
> > needed.
> >
> > --Lorne
> 
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.