JDK中运行Java程序的工具是,在JDK 6中编译并在JDK7上运行的Java字节代码是否可以在JDK 7中修复漏洞?...

The motivation of my question is simple: Unfortunately Oracle stopped development of Java 6 and will not provide any additional build.

If Oracle will discover any security issue they will fix it only in Java 7.

We have big project that developed in Java 6 and I do not have resources to convert it to Java 7.

So, I want to compile the code in last build of JDK 6 (6u45) and to run it in most updated build of JDK 7.

Is in this case my byte code will be open to vulnerability fixed in JDK 7?

Added

Unfortunately, the next security patches will be not be applied to JDK 6.

So, the updated question is:

Should I run my code using the latest JRE 7 without recompile my Java 6 byte code?

Or should I recompile my code using latest JDK and also to run it using the latest JRE?

解决方案

If the vulnerabilities are in the virtual machine or the API, it isn't open to the vulnerability if you run it with Java 7. If it is in the compiler, you can fix the vulnerability by compiling it with Java 7.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值