Java中的新PathDasher(null)真的会导致JVM崩溃吗?

Java中的新PathDasher(null)真的会导致JVM崩溃吗?,java,Java,让我们看看下面的Java代码 public class Main { public static void main(String[] args) throws IOException { PathDasher p = new PathDasher(null) ; } } 当我在Java6中尝试上述代码时,检测到如下错误 run: # # A fatal error has been detected by the Java Runtime Envi

让我们看看下面的Java代码

public class Main
{
    public static void main(String[] args) throws IOException
    {
         PathDasher p = new PathDasher(null) ;
    }
}

当我在Java6中尝试上述代码时,检测到如下错误

run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d9add45, pid=1588, tid=3808
#
# JRE version: 6.0_21-b07
# Java VM: Java HotSpot(TM) Client VM (17.0-b17 mixed mode, sharing windows-x86 )
# Problematic frame:
# V  [jvm.dll+0xfdd45]
#
# An error report file with more information is saved as:
# E:\Project\FunnyName\hs_err_pid1588.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)


它会导致JVM崩溃吗?

如果这是代码,那么传递
null
似乎会传递给一个本机方法,如果它不能正确处理它,可能会使JVM崩溃

而不是拿我们的JVM冒险。。。运行它!!!代码中完全不需要抛出IOException。我错误地添加了它。为什么要使用未记录(可能不支持)的类?