JDK-6607218 : FileChooser throws security exception while creation
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2007-09-20
  • Updated: 2011-01-19
  • Resolved: 2010-08-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
I tried to run attached program Main.java with setted security manager (-Djava.security.manager -Djava.security.policy=perm.policy). Shortly this programm only creates FileChooser: new JFileChooser("c:\\temp\\").

JDK 7 throws exception
Exception in thread "main" java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\pp208049\Recent read).

At the same time JDK 6 creates FileChooser without any problems.

Comments
EVALUATION This bug was introduced by fix of CR 6548613
20-09-2007