% cat Main1.java
class Main1 extends Thread {
public static void main(String[] args) {
Main1 m = new Main1();
m.start();
try {
m.join();
}catch(Throwable exp){}
m.setPriority(5);
}
public void run() {
}
}
% /usr/local/java/jdk1.4/solsparc/bin/java Main1 Exception in thread "main" java.lang.NullPointerException
at java.lang.Thread.setPriority(Thread.java:880)
at Main1.main(Main1.java:10)
###@###.### 2001-10-17
class Main1 extends Thread {
public static void main(String[] args) {
Main1 m = new Main1();
m.start();
try {
m.join();
}catch(Throwable exp){}
m.setPriority(5);
}
public void run() {
}
}
% /usr/local/java/jdk1.4/solsparc/bin/java Main1 Exception in thread "main" java.lang.NullPointerException
at java.lang.Thread.setPriority(Thread.java:880)
at Main1.main(Main1.java:10)
###@###.### 2001-10-17
- duplicates
-
JDK-5073365 (thread) java.lang.Thread.SetPriority() raises a NullPointerException if a thread has exi
-
- Resolved
-