开发中,我们一般都会要用到一些第三方工具,并且之后还会不断的去人为的修改。对于hibernate,有一款不错的根据数据库表生成vo的工具。只是有个问题,不支持基本的类型映射,比如int double等,这样在启动的时候jvm虚拟机是会报错的。
异常信息大致如下:
a fatal error has been detected by the java Runtime Enviroment
internal error(c1_ optimizer.cpp),pid=1096,tid=2394
guarantee(x_compare_res)!=Constant::not_comparable) failed:
等等,错误信息就不敲了。
需要的处理:
window--preferences---java--intalled jres 选择jdk, 然后点击旁边的edit,
在defaule vm arguments域里输入:
-XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder.setType