-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Description
Original issue created by david.nouls on 2012-08-07 at 07:35 AM
Detected with: guava R13
When compiling my GWT application that is depending on guava-gwt I get the following errors with guava 13:
compile:
[echo] Invoking GWT JavaScript compiler. Style=PRETTY Workers:2
[java] Compiling module com.swift.gwt.platform.Platform
[java] Validating newly compiled units
[java] [ERROR] Errors in 'jar:file:/scm/vobs/rlsCOTS5/guava/JAVA/lib/guava-gwt.jar!/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/SetGenerators.ja
va'
[java] [ERROR] Line 17: The declared package "com.google.common.collect.testing.google" does not match the expected package "com.google.common.collect.testing.google.super.com.google.co
mmon.collect.testing.google"
[java] [ERROR] Line 22: The import com.google.common.collect.testing.SampleElements cannot be resolved
[java] [ERROR] Line 23: The import com.google.common.collect.testing.SampleElements cannot be resolved
[java] [ERROR] Line 24: The import com.google.common.collect.testing.SampleElements cannot be resolved
[java] [ERROR] Line 25: The import com.google.common.collect.testing.SampleElements cannot be resolved
[java] [ERROR] Line 26: The import junit cannot be resolved
[java] [ERROR] Line 38: The import com.google.common.collect.testing.TestCollectionGenerator cannot be resolved
[java] [ERROR] Line 39: The import com.google.common.collect.testing.TestCollidingSetGenerator cannot be resolved
[java] [ERROR] Line 40: The import com.google.common.collect.testing.TestIntegerSortedSetGenerator cannot be resolved
[java] [ERROR] Line 41: The import com.google.common.collect.testing.TestSetGenerator cannot be resolved
[java] [ERROR] Line 42: The import com.google.common.collect.testing.TestStringListGenerator cannot be resolved
[java] [ERROR] Line 43: The import com.google.common.collect.testing.TestStringSetGenerator cannot be resolved
[java] [ERROR] Line 44: The import com.google.common.collect.testing.TestStringSortedSetGenerator cannot be resolved
[java] [ERROR] Line 45: The import com.google.common.collect.testing.TestUnhashableCollectionGenerator cannot be resolved
[java] [ERROR] Line 46: The import com.google.common.collect.testing.UnhashableObject cannot be resolved
[java] [ERROR] Line 65: TestStringSetGenerator cannot be resolved to a type
[java] [ERROR] Line 66: The method create(String[]) of type SetGenerators.ImmutableSetCopyOfGenerator must override or implement a supertype method
[java] [ERROR] Line 72: TestCollidingSetGenerator cannot be resolved to a type
[java] [ERROR] Line 76: TestCollectionGenerator cannot be resolved to a type
[java] [ERROR] Line 78: The method create(Object...) of type SetGenerators.ImmutableSetWithBadHashesGenerator must override or implement a supertype method
[java] [ERROR] Line 84: TestStringSetGenerator cannot be resolved to a type
[java] [ERROR] Line 88: The method create(String[]) of type SetGenerators.DegeneratedImmutableSetGenerator must override or implement a supertype method
[java] [ERROR] Line 95: TestStringSortedSetGenerator cannot be resolved to a type
[java] [ERROR] Line 96: The method create(String[]) of type SetGenerators.ImmutableSortedSetCopyOfGenerator must override or implement a supertype method
[java] [ERROR] Line 102: TestStringSortedSetGenerator cannot be resolved to a type
[java] [ERROR] Line 103: The method create(String[]) of type SetGenerators.ImmutableSortedSetHeadsetGenerator must override or implement a supertype method
[java] [ERROR] Line 112: TestStringSortedSetGenerator cannot be resolved to a type
[java] [ERROR] Line 113: The method create(String[]) of type SetGenerators.ImmutableSortedSetTailsetGenerator must override or implement a supertype method
[java] [ERROR] Line 122: TestStringSortedSetGenerator cannot be resolved to a type
[java] [ERROR] Line 123: The method create(String[]) of type SetGenerators.ImmutableSortedSetSubsetGenerator must override or implement a supertype method
[java] [ERROR] Line 133: TestStringSetGenerator cannot be resolved to a type
[java] [ERROR] Line 138: The method create(String[]) of type SetGenerators.ImmutableSortedSetExplicitComparator must override or implement a supertype method
[java] [ERROR] Line 144: The method order(List<String>) of type SetGenerators.ImmutableSortedSetExplicitComparator must override or implement a supertype method
[java] [ERROR] Line 151: TestStringSetGenerator cannot be resolved to a type
[java] [ERROR] Line 156: The method create(String[]) of type SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator must override or implement a supertype method
[java] [ERROR] Line 162: The method order(List<String>) of type SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator must override or implement a supertype method
[java] [ERROR] Line 169: TestStringSetGenerator cannot be resolved to a type
[java] [ERROR] Line 171: The method create(String[]) of type SetGenerators.ImmutableSortedSetReversedOrderGenerator must override or implement a supertype method
[java] [ERROR] Line 177: The method order(List<String>) of type SetGenerators.ImmutableSortedSetReversedOrderGenerator must override or implement a supertype method
[java] [ERROR] Line 183: The hierarchy of the type ImmutableSortedSetUnhashableGenerator is inconsistent
[java] [ERROR] Line 185: UnhashableObject cannot be resolved to a type
[java] [ERROR] Line 185: The method create(UnhashableObject[]) of type SetGenerators.ImmutableSortedSetUnhashableGenerator must override or implement a supertype method
[java] [ERROR] Line 186: UnhashableObject cannot be resolved to a type
[java] [ERROR] Line 192: TestStringListGenerator cannot be resolved to a type
[java] [ERROR] Line 193: The method create(String[]) of type SetGenerators.ImmutableSetAsListGenerator must override or implement a supertype method
(the list goes on).
I tend to always compile in strict mode so for me it is blocking.
Workaround:
Do not use -strict when gwt compiling.