简体   繁体   English

Java 7支持Google App Engine Java

[英]Java 7 support for Google App Engine Java

The Google App Engine Java overview page indicates that the Java versions 5 and 6 are supported. Google App Engine Java 概述页面指示支持Java版本5和6。 When starting the local development server with Java 7u4 the following error bubbles up: 使用Java 7u4启动本地开发服务器时,出现以下错误:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x000000010d733a96, pid=32766, tid=140735250205024
#
# JRE version: 7.0_04-b21
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# J  com.google.appengine.repackaged.org.objectweb.asm.MethodWriter.visitInsn(I)V
#

For more information please refer to the output and the thread dump . 有关更多信息,请参阅输出线程转储

Is there any known issue with this particular Java 7 version? 这个特定的Java 7版本有任何已知问题吗? Is there going to be full Java 7 support for GAE Java on the roadmap? 是否会在路线图上为GAE Java提供完整的Java 7支持?

Is there any known issue with this particular Java 7 version?

We're well aware of Java 1.7 issues. 我们非常了解Java 1.7问题。

Is there going to be full Java 7 support for GAE Java on the roadmap?

Until we've made some official announcement, we have to ask for patience. 在我们做出正式公告之前,我们必须要求耐心。

As of AppEngine 1.7.7, support has been added for Java 7. 从AppEngine 1.7.7开始,Java 7增加了支持。

http://googleappengine.blogspot.ca/2013/04/app-engine-177-released.html http://googleappengine.blogspot.ca/2013/04/app-engine-177-released.html

Is there any known issue with this particular Java 7 version? 这个特定的Java 7版本有任何已知问题吗?

Well, as you stated it's not supported. 好吧,正如你所说,它不受支持。

Also, this 2011 thread seems to reference a similar bug on OS X and announces a bugfix. 此外,这个2011 线程似乎引用了OS X上的类似错误并宣布了一个错误修正。

Is there going to be full Java 7 support for GAE Java on the roadmap? 是否会在路线图上为GAE Java提供完整的Java 7支持?

Probably not for a rather long while. 可能不会持续相当长的一段时间。

You could, however, try to force the use of a 1.6 source format and a 1.6 target class format, in your Eclipse project (or whichever build system you use). 但是,您可以尝试在Eclipse项目(或您使用的任何构建系统)中强制使用1.6源格式和1.6目标类格式。

Further Reading: 进一步阅读:

Here is what has been announced here on this recently: 以下是已经公布在这里对这个新近:

Version 1.7.3 - October 23, 2012 版本1.7.3 - 2012年10月23日

We encourage you to try and test your application using Java 7 and the App Engine SDK. 我们鼓励您尝试使用Java 7和App Engine SDK测试您的应用程序。 Note that Java 7 is not a supported runtime. 请注意,Java 7不是受支持的运行时。

Java 7 Features that we encourage you to try in dev appserver: Java 7我们鼓励您在dev appserver中尝试的功能:

Strings in switch 开关中的字符串

Binary integral literals and underscores in number literals 数字文字中的二进制积分文字和下划线

Multi-catch and more precise rethrow 多次捕获和更精确的重新抛出

Improved type inference for generic instance creation (diamond) 通用实例创建的改进类型推断(菱形)

try-with-resources statement 尝试使用资源声明

Simplified varargs method invocation 简化的varargs方法调用


Java 7 features that are NOT supported: 不支持的Java 7功能:

All new Java 7 classes (the Google App Engine whitelist has not been updated yet) 所有新的Java 7类(Google App Engine白名单尚未更新)

Method Handles 方法句柄

Invoke Dynamic bytecode 调用动态字节码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM