-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Engine Java 8 Runtime and Objenesis #51
Comments
Those are really good news. I need to tweak the strategy to be able to look for a working instantiator if the expected one fails. That would make Objenesis more robust on new platform. How can I know that I'm on GAE 8? com.google.appengine.runtime.version == 8? Also, I am willing to test it and officially validate the platform. But I will probably need Google Cloud Platform credits to do so. |
You could simply check now if the SecurityManager is installed. I.e. check if "System.getSecurityManager()" returns null. The other property you included will just contain the runtime version (e.g. 1.9.48), so it should not be used for this purpose. Thank you for willing to test on the platform. Simply request to join the alpha program (as described here), and you should be able to deploy and test with this new runtime. |
Make sense. Will do that as soon as I can. Will also read Guillaume wisdom to sign for alpha :-) |
Salut Henri! |
Bien le bonjour. Cool. I just did my request for alpha. |
Cool! |
Thanks! |
Henri, you could also check for System.getProperty("java.specification.version"). For java8 runtime it should be "1.8" in production. My colleague pointed out that checking for SecurityManager may not be the best, since a java8 application could install its own SecurityManager now. |
Nice, Merci beaucoup!
…On Thu, May 25, 2017 at 11:41 PM, Henri Tremblay ***@***.***> wrote:
Closed #51 <#51> via b4273d9
<b4273d9>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAE4zeaukDbLpR7QLxTrV2tDIzwxPTGjks5r9nQfgaJpZM4NlaWw>
.
|
No problem. By the way, if needed there is a sub-module named |
thnx! what's the target release date for 2.6? and/or if there will be a 2.5.x minor release prior? (trying to figure out how to file an issue for Spring Framework to upgrade) |
I'm part of Google Cloud engineering team, and I'm looking into making sure that libraries relying on SpringBoot and Objenesis could run seamlessly on Google App Engine Java 8 runtime - our new runtime which is in Alpha at the moment.
We noticed that the reason that GAE is only partially supported by Objenesis is due to security restrictions.
In Java8 runtime the security restrictions are lifted off. Thus, it should be possible for Objenesis do what needs to be done when running within this new runtime.
As an example, we recently noticed that Springboot relies on ability to create Proxy objects for classes with no default constructor via Objenesis. However, Objenesis will detect GAE environment, and will use an instantiator that expects a default constructor. In GAE Java8 the use of this instantiator should no longer be necessary.
The text was updated successfully, but these errors were encountered: