running Java in vscode: "build failed, do you want to continue?" if i choose "proceed", it works fine.this is the bug info
This is the code of an example:
package Java.ch11;
class MyThread extends Thread{
public void run()
{
    this.setName("sub thread");
    for(int i = 0; i < 1000; i +=2)
    System.out.println("当前线程:"+this+" "+i);
}
}
public class CreateThreadTest{
    public static void main(String[] args)
    {
    MyThread mt = new MyThread();
    mt.start();
    Thread t = Thread.currentThread();
    t.setName("main thread");
    System.out.println("当前线程为:"+t);
    }
}
 
    
 
    