Skip to content

Guava 32.1.1 is not compatible with GWT because of System.nanoTime calls #6627

@Arpic

Description

@Arpic

After updating to Guava 32.1.1 we cannot compile our GWT project anymore because of changes to the @GwtCompatible Ticker class:

[ERROR] Errors in 'com/google/common/base/Ticker.java'
    [ERROR] Line 53: The method nanoTime() is undefined for the type System
Tracing compile failure path for type 'com.google.common.base.Ticker'
    [ERROR] Errors in 'com/google/common/base/Ticker.java'
        [ERROR] Line 53: The method nanoTime() is undefined for the type System

Is it an issue in our setup or an incompatible change ?

Activity

cpovirk

cpovirk commented on Jul 6, 2023

@cpovirk
Member

Ah, support for nanoTime() is new in GWT 2.10.0. I should have thought to investigate that. I'll mention it in the release notes.

Is upgrading to 2.10.0 practical?

Arpic

Arpic commented on Jul 6, 2023

@Arpic
Author

Ah yes, I didn't think to check the GWT release notes, I will investigate whether it's possible for us to upgrade. Thanks for the quick answer.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cpovirk@Arpic@chaoren

        Issue actions

          Guava 32.1.1 is not compatible with GWT because of System.nanoTime calls · Issue #6627 · google/guava