Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-760

Guava version used by Errai is incompatible with JDK 1.8

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0.Final
    • Fix Version/s: 3.1.0.CR1
    • Component/s: Build and Common
    • Labels:
      None
    • Environment:

      JDK 1.8, Jetty 9.1.5.v20140505, weld 2.2.1.Final, gwt 2.6.1

      Description

      Attempting to run gwt:compile using JDK 1.8 generates the exceptions below (1). This is because Errai is referencing Guava 14.0. Adding a compile time dependency on Guava 17 fixes the issue (2).

      1)
      [INFO]
      [INFO] — gwt-maven-plugin:2.6.1:compile (gwt-compile) @ errai-template-conflct —
      [INFO] auto discovered modules [errai_template_conflict.errai_template_conflict]
      [INFO] Compiling module errai_template_conflict.errai_template_conflict
      [INFO] Validating units:
      [INFO] [ERROR] Errors in 'jar:file:/C:/Users/aanderson/.m2/repository/com/google/guava/guava-gwt/14.0.1/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java'
      [INFO] [ERROR] Line 112: Name clash: The method copyOf(Map<? extends K,? extends V>) of type ImmutableSortedMap<K,V> has the same erasure as copyOf(Map<? extends K,? extends V>) of type ImmutableMap<K,V> but does not hide it
      [INFO] [ERROR] Errors in 'jar:file:/C:/Users/aanderson/.m2/repository/com/google/guava/guava-gwt/14.0.1/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java'
      [INFO] [ERROR] Line 140: Name clash: The method copyOf(Collection<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Collection<? extends E>) of type ImmutableSet<E> but does not hide it
      [INFO] [ERROR] Line 145: Name clash: The method copyOf(Iterable<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Iterable<? extends E>) of type ImmutableSet<E> but does not hide it
      [INFO] [ERROR] Line 150: Name clash: The method copyOf(Iterator<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Iterator<? extends E>) of type ImmutableSet<E> but does not hide it

      2)

      <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava-gwt</artifactId>
      <version>17.0</version>
      <scope>provided</scope>
      </dependency>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                aanderson1776 Aaron Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: