是否“安全”?针对JDK7平台进行开发?

发布于 2024-09-30 02:16:31 字数 490 浏览 4 评论 0原文

我们有一个项目(假设)将在 1-2 年内完成。到那时,JDK7(希望还有 Java7 JCP 规范)应该已准备就绪。

但是,我想知道,Oracle 做出“愚蠢”决定的“危险”有多大,这将使 JDK7 成为一个比现有 JDK6 更不“有吸引力”的平台?

更具体地说,我担心这样的情况:

  • 在“发布”之前停止 JDK7 的开发
  • ,将许可模式更改为比 JDK6 更严格
  • ……还有其他需要注意的情况吗?

您对这个问题有何看法?

注意:我们将使用 NIO2 文件 API,或许还有其他 JDK7 独有的功能,这些功能被 “B 计划”(A 计划被拒绝,是继续开发 JDK7 更长时间的提议,相反,B 计划被接受:开发功能较少的 JDK7,并推迟到 JDK8)

We have a project which (assumed) would be finished in 1-2 years. By then, the JDK7 (and hopefully the Java7 JCP spec) should be ready.

But, I wonder, how probable is the "danger" that Oracle will make a "stupid" decision, which would make the JDK7 a less "attractive" platform then the existing JDK6?

More specific, I'm afraid of scenarios such as:

  • halting the development of JDK7 before it is "released"
  • changing the licensing model to be more restrictive than JDK6
  • ...are there other scenarios to be aware of?

What is your opinion on the issue?

NOTE: We would use the NIO2 files API, and perhaps other JDK7-only features which were accepted for "Plan B" (Plan A was rejected, was a proposal to continue to develop JDK7 much longer, instead, Plan B was accepted: develop JDK7 with less features and postpone them for JDK8)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜点 2024-10-07 02:16:31

这取决于您使用多少 Java 7 特定功能。

如果您的代码仍然可以在 JDK 6 上编译,我会说您非常安全。您可以在 JDK 7 上运行,因为它向后兼容,但如果出现问题,您仍然可以在 6 上部署。

如果 Oracle 做了一些非常愚蠢的事情,您将面临一个更大的决定:我是否用 C#、Python 重写这个应用程序,还是别的什么?

我很好奇开源 JDK 将如何帮助您对冲您的赌注。

我也很想知道您已经在使用 JDK 7 的哪些功能:闭包?

It depends on how many Java 7 specific features you use.

If your code can still compile on JDK 6, I'd say you're quite safe. You can run on JDK 7, since it's backwards compatible, but if there's an issue you can still deploy on 6.

If Oracle does something really stupid you'll have a bigger decision on my hands: Do I rewrite this app in C#, Python, or something else?

I'll be curious to see how well open source JDK will allow you to hedge your bet.

I'd also be curious to see which features of JDK 7 you're already using: closures?

三生池水覆流年 2024-10-07 02:16:31

如果您担心与 Java 7 相关的风险,可以通过确保代码在 Java 6 上运行来减轻这些风险。最简单的方法是立即在 Java 6 上进行开发,然后在这些风险消失后升级到 Java 7 。

除了您注意到的风险之外,为 Java 7 规划的功能集也在不断变化。

If you're concerned about risks associated with Java 7, you can mitigate them by ensuring your code will run on Java 6. The easiest way to do this is to develop atop Java 6 now, then upgrade to Java 7 once those risks have dissipated.

In addition to the risks you've noted, the set of features planned for Java 7 is in flux.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文