BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Google Previews Java 7 Support for App Engine

| by Charles Humble Follow 63 Followers on Nov 07, 2012. Estimated reading time: 1 minute |

Google has included a preview of the forthcoming support for Java 7 in the October update to their Platform-as-a-Service App Engine. Currently it is limited to developer machines, and the vendor hasn't provide a timeframe for official support, simply stating:

In an upcoming release, we will be including some of the new Java 7 functionality, as well as formal Java 7 support within the App Engine Java runtime. Before this is available, we strongly encourage developers to start testing their applications using Java 7 and the latest App Engine Java SDK. 

Google's Java 7 support is a subset that excludes method handles, the InvokeDynamic bytecode instruction, and, at least at present, all the new Java 7 classes. It does though support the new language features from project Coin:

  • 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

The vendor has also added experimental support to allow Java developers to set classloading priority for specific JAR files in order to resolve collisions between class names. These can be configured using the <class-loader-config> element of an XML document:
<class-loader-config>
        <priority-specifier filename="mailapi.jar"/>
</class-loader-config>

The order of the <priority-specifier> elements themselves is not used, so if multiple JAR files are prioritized, their original loading order is used.

Other Java-oriented PaaS vendors that already support Java 7 include CloudBees, Jelastic and VMware's Cloud Foundry.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT