平台方法在Google AppEngine JAVA SDK1.9.50中创建HTTP请求时丢失警告

Wil*_*ung 5 java google-app-engine http

我正在使用以下JAVA代码发出URL请求

URL urlObj = new URL( urlStr );
HttpURLConnection httpConn = (HttpURLConnection)urlObj.openConnection();
httpConn.setDoOutput(true);
httpConn.setRequestMethod("GET");

int statusCode = httpConn.getResponseCode();
if ( statusCode != HttpURLConnection.HTTP_OK ) {
    logger.severe( "Error in opening url:" + urlStr );
    return;
}

bufferReader = new BufferedReader ( new InputStreamReader( httpConn.getInputStream(), "UTF-8" ) );
String line = null;
while ((line = bufferReader.readLine()) != null) {
        logger.info( line );
}
Run Code Online (Sandbox Code Playgroud)

它在Google App Engine上运行,在appengine sdk 1.9.49中没有任何问题.但是当我升级到1.9.50时,它会返回以下警告

[INFO] 3? 11, 2017 12:04:51 ?? com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil supportsUnsafeByteBufferOperations
[INFO] ??: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.misc")
[INFO] 3? 11, 2017 12:04:51 ?? com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil.supportsUnsafeArrayOperations
[INFO] ??: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.misc")
[INFO] 3? 11, 2017 12:04:51 ?? com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil.supportsUnsafeCopyMemory
[INFO] ??: copyMemory is missing from platform - proto runtime falling back to safer methods.
Run Code Online (Sandbox Code Playgroud)

我需要采取什么行动或者忽略它?谢谢

Nic*_*ick 0

当前版本是1.9.52。您应该检查该问题是否在 1.9.52 中仍然存在,如果仍然存在,您应该提交公共问题跟踪器报告供我们查看。您已经注意到所谓的软件回归,即版本发布之间的功能更改,以前有效的功能不再有效。