Most Java apps are flawed on my system

B

Bart Cremers

As said, the user.home property points to the parent of the desktop
directory on windows. The platform dependent way application
programmers should resolve the real user profile directory for windows
(note profile, not home) is through System.getEnv("USERPROFILE").

But using this requires application programmers to write some code to
determine the platform. And therefore they use
System.getProperty("user.home") instead which could be stated as
returning a buggy value. I would not say it's a bug, it just a decision
Sun has made to make the user.home property available on all platforms
in all circumstances.

Regards,

Bart
 
S

Stefan Schulz

About the desktop issue? Yes, but not about the name replacements, and
several other issues.

So there is a bug reported, let's hope it gets fixed soon. :)
 
O

Oliver Wong

Bart Cremers said:
As said, the user.home property points to the parent of the desktop
directory on windows. The platform dependent way application
programmers should resolve the real user profile directory for windows
(note profile, not home) is through System.getEnv("USERPROFILE").

But using this requires application programmers to write some code to
determine the platform. And therefore they use
System.getProperty("user.home") instead which could be stated as
returning a buggy value. I would not say it's a bug, it just a decision
Sun has made to make the user.home property available on all platforms
in all circumstances.

From the javadocs at
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties(),
the "user.home" property is said to be "User's Home Directory".

I don't know the Win32 platform well enough to know if this is the case,
but if "User's Home Directory" has well defined semantics on the Win32
platform, and if it is not the same as what System.getProperty("user.home")
returns, then I think that is a bug. On the other hand, if the platform
doesn't really define a "User's Home Directory", then I'd say Sun is has
some freedom to returning whatever they want.

So it all depends on whether "User's Home Directory" actually means
something on Win32 or not.

- Oliver
 
T

Timbo

Oliver said:
Yeah, and I'm convince (s)he's actually right about the bug now. I guess
(s)he just have good communication/people's skills, which caused others to
initially dismiss him/her. But the bug (s)he's reporting does seem to be a
real one.
I didn't really follow the thread, so I have no comment about the
alleged bug, but just this sentence:

"Since I'm the only one not being a complete moron posting to this
thread"

took my by surprise somewhat!
 
O

Oliver Wong

Timbo said:
Oliver Wong wrote:

Dropped a word: ^ that should read "(s)he just *doesn't* have good" etc.
I didn't really follow the thread, so I have no comment about the alleged
bug, but just this sentence:

"Since I'm the only one not being a complete moron posting to this thread"

took my by surprise somewhat!

Probably a snowball effect. People were dismissing the issue because of
his/her attitude, so he got frustrated, and posted stuff like that in anger,
which caused more people to dismiss the issue, etc.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top