Exception in thread “main” java.lang.Error: Always run main and tests with assertions enabled
at P4.twitter.Main.main(Main.java:47)
try {
assert false;
throw new Error("Always run main and tests with assertions enabled");
} catch (AssertionError ae) { }
本文介绍了一种在Java程序中遇到的错误:当使用断言功能时出现的Alwaysrunmainandtestswithassertionsenabled异常。该异常通常发生在没有正确启用断言的情况下运行带有断言检查的程序时。
1713

被折叠的 条评论
为什么被折叠?



