Skip to content
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

Java 8 (and 9) support #26

Merged
merged 22 commits into from
Feb 13, 2018
Merged

Java 8 (and 9) support #26

merged 22 commits into from
Feb 13, 2018

Conversation

mtake
Copy link
Member

@mtake mtake commented Feb 13, 2018

Main changes

  • Updated the minimum Java version to 8. Java backend will generate class files in Java 8 format by default.
  • Java lambda expressions can be converted from/to X10 closures. See Java8.x10 and java.interop example for the usage.
  • Java interface method body (either static or default method) can be called from X10. See java.interop example for the usage.
  • Updated X10 class resolver to look up Java classes from Java archives (jar files) as well as Java modules. This is required to run X10 on Java 9.

Other miscellaneous changes

  • Removed WALA. SMAP information is no longer available.
  • Updated dependencies to the current ones.
  • Fixed a pre-existing bug in Java backend for overriding Java method with return type T in X10.
  • Fixed a pre-existing bug in X10 serializer for serializing plain (i.e. non-X10 generated) Java classes with writeReplace/readResolve methods. This is required to serialize dynamic classes such as Java lambda in X10.

….6.1, snappy-java-1.1.7.1, and hazelcast-3.9.2
…ethod which returns T. This is unrelated to Java 8.
…sses to support dynamic classes such as Java lambda
Copy link
Member

@dgrove-oss dgrove-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for doing this.

I'll take a look at the X10DT side of this update after you merge this.

@mtake mtake merged commit 1ce1ac3 into master Feb 13, 2018
@saraswat
Copy link

saraswat commented Feb 13, 2018 via email

@mtake mtake deleted the java8+ branch January 8, 2019 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants