GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use Java8 features in APIs now · Issue #108 · googleapis/google-cloud-java

Use Java8 features in APIs now #108

New issue
Copy link
New issue
Copy link
Closed
Closed
Use Java8 features in APIs now#108
Copy link
Assignees
garrettjonesgoogle
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@jboynes
jboynes
opened on Jun 10, 2015
Issue body actions

There have been a couple of issues recently where more elegant solutions could be provided using features from Java 8. These have included

  • use of lambda functions for datastore transaction
  • direct use of standard function classes rather than Guava equivalents
  • use of new Time classes
  • use of Optional rather than JSR-305 annotations

To do this we would need to raise the minimum JDK version from 7 to 8 which cause may problems for users who still use older Java runtimes. However, Oracle have already EOLed their public version of Java 7.

The main advantage of doing this now rather than waiting is that it avoids needing to rev a new version of the API to make use of these idioms and avoids having to support two API versions.

Activity

Next
  1. ludoch commented on Jun 11, 2015

    @ludoch
    ludoch
    on Jun 11, 2015
    Contributor
    More actions

    We want to move asap to Java8, given the constraints we have:
    1/ App Engine V1 is still only on Java 7
    2/ Managed VM V2 is still on Java 7 with optional customization for Java 8
    3/ Android clients?
    4/ Customer constraints... I've heard this week that in the GRPC/BigTable/HBase area that Hbase has issues with Java 8 and requires for now a Managed VM Java 7 only. Things are progressing, but we need to be cautious there to not hurt possible customers in Q3/Q4.
    5/ Other Google internal constraints.
    Once we are clear of these points we will move to Java 8. At that point, we ideally would have an Android story.

    Do we know when Guava is moving to Java 8?

  2. jboynes commented on Jun 11, 2015

    @jboynes
    jboynes
    on Jun 11, 2015
    Author
    More actions

    We won't be going GA with this API for a few months, will those internal issues be resolved by then? In the meantime AppEngine users can continue to use the existing appengine APIs so they would still be able to use the underlying services.

    The nicer, Java8-dependent version could still be used for development (on desktop), on GCE or other compute environments, and on AppEngine Managed VMs with a custom runtime.

    Android seems like a different beast in many ways. We might be better having a separate, optimized for Android library - gcloud-android perhaps.

  3. ludoch commented on Jun 11, 2015

    @ludoch
    ludoch
    on Jun 11, 2015
    Contributor
    More actions

    We are talking months, not years:-)... But
    Existing App Engine customers need/want Storage APIs, or PubSub APIs, etc,...and explore the new world (shared apps/modules between V1 and V2 is a very common scenario for V2 customers).
    Meanwhile, I prefer the keep HEAD on Java7 and this is helping as well the Android side.
    At some point of time, where we have more APIs support, more stability, more usage and more feedback, we can handle the dual support, Java7: mostly for Android and legacy gcloud-java for hardcore Java7 users, and Java8. We are not setup yet for this mode, but are working toward this..

  4. jboynes commented on Jun 11, 2015

    @jboynes
    jboynes
    on Jun 11, 2015
    Author
    More actions

    If it's months then it does not sound like we have a problem as release of this API would coincide with when the AppEngine issues would be fixed. And everyone not using AppEngine would get the benefits immediately.

    By using newer features now is that we will defer having to support multiple versions until Java 9 (or possibly even longer given the Java 9 focus on modularity rather than language features) - IOW, not for several years. We'd be offering the API everyone seems to wish to offer now rather than later.

  5. aozarov
    added
    type: questionRequest for information or clarification. Not an issue.
    on Oct 10, 2015
  6. lesv commented on Jun 20, 2016

    @lesv
    lesv
    on Jun 20, 2016
    Contributor
    More actions

    +1 We should find a way to include J8 idioms and still run on J7 (without those API's.)

  7. garrettjonesgoogle commented on Nov 18, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Nov 18, 2016
    Contributor
    More actions

    I think there will be less churn if we just stick to Java 7 idioms until we are cleared for Java 8. Closing this issue now because it's stale.

  8. garrettjonesgoogle
    closed this as completedon Nov 18, 2016
  9. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  10. github-actions
    added 3 commits that reference this issue on Jun 23, 2022

    chore(main): release 1.1.2-SNAPSHOT (#108)

    354ad2f

    samples: fix snippet closing tag (googleapis#108)

    ca5d000

    chore(main): release 1.2.0 (googleapis#108)

    58b52b7
  11. github-actions
    added a commit that references this issue on Aug 16, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-eventarc…

    2bcf9ba
  12. github-actions
    added a commit that references this issue on Sep 15, 2022

    chore(main): release 1.1.9 (#108)

    b29f26d
  13. github-actions
    added a commit that references this issue on Oct 4, 2022

    chore(main): release 0.5.5 (#104)

    d667dda
  14. 1 remaining item

  15. github-actions
    added 3 commits that reference this issue on Oct 4, 2022

    chore(main): release 0.5.3 (#108)

    3a04f5f

    chore(main): release 0.3.6 (googleapis#108)

    dabe749

    chore(deps): update dependency com.google.cloud:google-cloud-bare-met…

    c593812
  16. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    fix(regen): undeprecate resourcenames until multi-pattern resource na…

    4ca5895

    chore: release 1.101.0 (#106)

    a531870
  17. chingor13
    added a commit that references this issue on Jan 6, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    3a67939
  18. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    feat: add flatten plugin to client and proto modules (#108)

    fb3566d

    chore: release 1.102.0 (#113)

    c34770f
  19. chingor13
    added a commit that references this issue on Feb 24, 2026

    Update release instructions (#108)

    b94f8e4
  20. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    fix(regen): undeprecate resourcenames until multi-pattern resource na…

    b7b7caf

    chore: release 1.101.0 (googleapis#106)

    1911b9c
  21. chingor13
    added a commit that references this issue on Mar 12, 2026

    Update release instructions (#108)

    1b07485
  22. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…

    906e688
  23. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    build(deps): update dependency org.apache.maven.plugins:maven-depende…

    7e2ee4f

    build(deps): update dependency org.apache.maven.plugins:maven-depende…

    27c4793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.