欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Exception in thread "main" java.lang.Error: Always run main and tests with assertions enabled

程序员文章站 2022-07-12 22:19:49
...

Exception in thread “main” java.lang.Error: Always run main and tests with assertions enabled
at P4.twitter.Main.main(Main.java:47)
Exception in thread "main" java.lang.Error: Always run main and tests with assertions enabled

try {
            assert false;
            throw new Error("Always run main and tests with assertions enabled");
        } catch (AssertionError ae) { }

Exception in thread "main" java.lang.Error: Always run main and tests with assertions enabled