-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0, 1.4.0, 1.4.2, 1.4.2_05
-
b71
-
x86, sparc
-
generic, solaris_7, solaris_8, windows_nt
-
Verified
internal builds that don't have images made. If you have made
images, then it works. I assume that if one includes classes of
their own not in a jar, then maybe they can't load their classes
if the thread is interrupted...
import java.nio.channels.*;
public class Blah {
public static void main(String[] args) throws Exception {
Thread.currentThread().interrupt();
SocketChannel.open().close(); // Any class not yet loaded
}
}
/export/mantis> /export/cache1/build/solaris-sparc/bin/java Blah
Exception in thread "main" java.lang.NoClassDefFoundError: java/nio/channels/SocketChannel
at Blah.main(Blah.java:6)
This bug has been present for several years.
- duplicates
-
JDK-4549130 URLClassLoader: NoClassDefFoundError thrown when not using rt.jar
- Closed
-
JDK-5019664 (cl) NoClassDefFoundError when thread is interrupted during class load (sol)
- Closed
- relates to
-
JDK-6317397 Hard hangs in concurrent code on Solaris and Linux
- Closed
-
JDK-4989068 PrintStream.println() prints nothing in interrupted thread (sol)
- Closed
-
JDK-4415048 (cl) Intermittent inexplicable NoClassDefFoundError thrown
- Closed
-
JDK-6375934 (cl) thread interruption interferes with classloading (sol)
- Closed
-
JDK-4992463 ClassLoading fails if the Thread's interrupt status is set
- Closed
-
JDK-4385444 (spec) InterruptedIOException should not be required by platform specification (sol)
- Closed