I have the code:
public class GuaranteedDeadlock {
public static void main(String[] args) {
long[] arr = new long[Integer.MAX_VALUE];
}
}
it produces:
Exception in thread "main" java.lang.ClassNotFoundException: GuaranteedDeadlock
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Looks like I configured idea a bit wrong, please correct me.