harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Lee <littlee1...@gmail.com>
Subject Re: File.getAbsolutePath() has bugs.
Date Tue, 19 Jan 2010 02:31:23 GMT
Hi Nathan,

It is supposed to be D:\<current directory on driver d>\tmp.

And if we are on the drive d and using C:tmp, it is supposed to C:\<current
directory on driver C>\tmp. In this situation, RI returns C:\\tmp on my
local machine.

On Tue, Jan 19, 2010 at 9:29 AM, Nathan Beyer <nbeyer@gmail.com> wrote:

> On Mon, Jan 18, 2010 at 3:44 AM, Charles Lee <littlee1032@gmail.com>
> wrote:
> > On windows platform, the test case is simple:
> >
> > *System.out.println(new File("D:tmp").getAbsolutePath());*
>
> Is it supposed to be "D:\tmp" or "D:tmp"?
>
> >
> > I'm doing some investigation but have some questions:
> > 1. windows has GetFullPathName method, but it is not thread-safe as msdn
> > said. Does anyone know some thread-safe ways to get full path?
> > 2. how does drlvm set usr.dir property? Is it from GetCurrentDirectory()
> ?
> >
> > Anyone could help on this? Thank you :)
> >
> > --
> > Yours sincerely,
> > Charles Lee
> >
>



-- 
Yours sincerely,
Charles Lee

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message