Skip to main content

1.7.0-ea-b64 throws CCE in sun.awt.shell.ShellFolder.

1 reply [Last post]
giorgio42
Offline
Joined: 2004-01-14

C:\jdk1.7.0\demo\jfc\FileChooserDemo>C:\jdk1.7.0\bin\java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b64)
Java HotSpot(TM) Client VM (build 16.0-b05, mixed mode, sharing)

Running the JFileChooser demo gives (in XP2 SP2):
C:\jdk1.7.0\demo\jfc\FileChooserDemo>C:\jdk1.7.0\bin\java -jar FileChooserDemo.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.swing.filechooser.FileSystemView.getRoots(FileSystemView.java:385)
at javax.swing.filechooser.WindowsFileSystemView.getHomeDirectory(FileSystemView.java:689)
at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:274)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:157)
at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:153)
at javax.swing.JComponent.setUI(JComponent.java:664)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1782)
at javax.swing.JFileChooser.setup(JFileChooser.java:374)
at javax.swing.JFileChooser.(JFileChooser.java:347)
at javax.swing.JFileChooser.(JFileChooser.java:300)
at FileChooserDemo.(FileChooserDemo.java:132)
at FileChooserDemo.main(FileChooserDemo.java:749)
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
at sun.awt.shell.ShellFolder.(ShellFolder.java:205)
... 12 more

Is anybody else seeing this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dmitryc
Offline
Joined: 2009-01-16

Hi giorgio42,

Yes, it's a known problem introduced in jdk7 b64:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6857870

It'll be fixed soon.

Thanks
Dmitry