From f0f7b6278e1daf2bc12bc12ac67176bfb1f970d8 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 9 Jun 2010 14:17:21 +0400 Subject: [PATCH] Temp dir cache reset came back to PlatformTestCase --- .../src/com/intellij/testFramework/PlatformTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java b/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java index 5d4540bf5262..6139fac76449 100644 --- a/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/PlatformTestCase.java @@ -563,13 +563,13 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro private static void setTmpDir(String path) { System.setProperty("java.io.tmpdir", path); + FileUtil.resetCanonicalTempPathCache(); + try { Class ioFile = File.class; Field field = ioFile.getDeclaredField("tmpdir"); - field.setAccessible(true); field.set(ioFile, null); - FileUtil.resetCanonicalTempPathCache(); } catch (NoSuchFieldException ignore) { // field was removed in JDK 1.6.0_12