难道新PathDasher(空)在Java中真正导致JVM崩溃?

让我们来看看下面的Java代码。

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



当我在Java 6中尝试了上面的代码,检测到胎儿的错误如下。

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中creah?

--------------解决方案-------------

如果是这样的代码,http://www.dei.unipd.it/ricerca/gmee/MeLa/MeLa/test/source/sun/dc/pr/PathDasher.java似乎传递null传递给本地方法这可能崩溃的JVM,如果它不能正确处理它。

分类:java的 时间:2015-03-15 人气:0
本文关键词: java的
分享到:

相关文章

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 0.389 (s). 10 q(s)