Hi all,
I meet a weired problem when I use maven. I execute the following code using "maven exec:java". Obviously, it should throw a RuntimeException, but I did not see anything in console. But if I execute it in eclipse, I can see the error message. So where does the exception gone ? Thanks
public class HelloWorld {
public static class MyThread extends Thread {
@Override
public void run() {
String str = null;
str = str.trim();
}
}
public static void main(String[] args) throws InterruptedException, IOException {
MyThread thread = new MyThread();
thread.start();
System.in.read();
}
}