-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P2
-
None
-
Affects Version/s: 7
-
Component/s: client-libs
-
generic
-
windows
The following minimized code sample throws java.lang.ExceptionInInitializerError
on JDK7 b64, b65
Platform - Windows
------------------------------------------------------------------------------
public class Test {
public static void main(String[] args) {
javax.swing.filechooser.FileSystemView.getFileSystemView().getRoots();
}
}
------------------------------------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.swing.filechooser.FileSystemView.getRoots(FileSystemView.java:385)
at Test.main(Test.java:3)
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
at sun.awt.shell.ShellFolder.<clinit>(ShellFolder.java:205)
... 2 more
PLEASE NOTE that failure is not reproducible on JDK7b66
Lots of JCK tests fail due to this problem, see comments for detailed list.
on JDK7 b64, b65
Platform - Windows
------------------------------------------------------------------------------
public class Test {
public static void main(String[] args) {
javax.swing.filechooser.FileSystemView.getFileSystemView().getRoots();
}
}
------------------------------------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.swing.filechooser.FileSystemView.getRoots(FileSystemView.java:385)
at Test.main(Test.java:3)
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
at sun.awt.shell.ShellFolder.<clinit>(ShellFolder.java:205)
... 2 more
PLEASE NOTE that failure is not reproducible on JDK7b66
Lots of JCK tests fail due to this problem, see comments for detailed list.
- duplicates
-
JDK-6857870 Regression tests are failing with ExceptionInInitializerError
-
- Closed
-