• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir


  • Subject: Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 29 Jun 2009 07:26:14 -0400

I'm not sure this is actually wrong ... the tmp folder after the update is the new tmp folder style in Leopard. I wouldn't think most apps would care what the tmp folder location is?

ms

On Jun 29, 2009, at 7:20 AM, Kieran Kelleher wrote:

Sounds like it should be "fixed" in ERXApplication constructor ..... and since you have commit access Timo .... :-)

On Jun 29, 2009, at 4:19 AM, Timo Hoepfner wrote:

Hi,

just FYI. Java 5 Update 4 changed the default for java.io.tmpdir. This affects File.createTempFile(...).

Previously it would create paths like:

/tmp/FOO-2946977911338389380.tmp

Now it will create create paths like:

/var/folders/Lh/LhcGbUPf2RWMKk+1YwshfU+++TI/-Tmp-/ FOO-2946977911338389380.tmp

Depending on how you use it, this can cause problems. See these discussions:

<http://lists.apple.com/archives/Java-dev/2009/Jun/msg00321.html>
<http://discussions.apple.com/thread.jspa?threadID=2041458>

You can restore the old approach by manually setting the java.io.tmpdir property:

	System.setProperty("java.io.tmpdir", "/tmp/");


Timo

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
      • From: Timo Hoepfner <email@hidden>
References: 
 >FYI: Java 5 Update 4 changed the default for java.io.tmpdir (From: Timo Hoepfner <email@hidden>)
 >Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
  • Next by Date: Re: Escaping in strings according to WOML
  • Previous by thread: Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
  • Next by thread: Re: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
  • Index(es):
    • Date
    • Thread