Owd-Larrd / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Cannot compile under GWT 2.2.0 and 2.3.0 #468

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GWT Maps v 1.1.0 and 1.1.1-rc1 do not compile with GWT SDK 2.2.0 and 2.3.0.

Please consider supporting the latest version of the SDK.

Original issue reported on code.google.com by george....@gmail.com on 21 May 2011 at 6:07

GoogleCodeExporter commented 9 years ago
Can you please elaborate?  Our release builder for 1.1.1-rc1 uses the stock GWT 
2.3.0 sdk.

Original comment by zundel@google.com on 21 May 2011 at 10:42

GoogleCodeExporter commented 9 years ago
When I set my project (in Eclipse) to use GWT 2.3.0 and I add the GWT Maps 
1.1.1-rc1 jar file on my classpath and I begin to compile my project I get a 
list of errors, strangely followed by the compile permutations.

Log is below

Compiling module com.company.Proggy
   Validating newly compiled units
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
         [ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 97: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
         [ERROR] Line 28: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
         [ERROR] Line 31: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 67: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
         [ERROR] Line 25: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 40: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 43: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 44: Missing code implementation in the compiler
         [ERROR] Line 49: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 49: Missing code implementation in the compiler
         [ERROR] Line 70: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 72: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 73: ConstraintViolation<?> cannot be resolved to a type
         [ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot be resolved to a type
         [ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot be resolved to a type
         [ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot be resolved to a type
         [ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot be resolved to a type
         [ERROR] Line 98: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
         [ERROR] Line 26: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> must implement the inherited abstract method EditorDriver<T>.setConstraintViolations(Iterable<ConstraintViolation<?>>)
         [ERROR] Line 107: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type MockSimpleBeanEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
         [ERROR] Line 108: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
         [ERROR] Line 93: TraversableResolver cannot be resolved to a type
         [ERROR] Line 105: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 182: TraversableResolver cannot be resolved to a type
         [ERROR] Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?
         [ERROR] Line 194: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?
         [ERROR] Line 202: ValidatorFactory cannot be resolved to a type
         [ERROR] Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
         [ERROR] Line 30: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 34: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 34: No source code is available for type ConstraintViolationException; did you forget to inherit a required module?
         [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 40: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 44: ConstraintViolationException cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'
         [ERROR] Line 21: The import javax.validation.metadata cannot be resolved
         [ERROR] Line 66: ConstraintDescriptor cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'
         [ERROR] Line 30: The import javax.validation.Constraint cannot be resolved
         [ERROR] Line 31: The import javax.validation.Payload cannot be resolved
         [ERROR] Line 49: Constraint cannot be resolved to a type
         [ERROR] Line 49: The attribute validatedBy is undefined for the annotation type Constraint
         [ERROR] Line 75: Payload cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/C:/Program%20Files/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'
         [ERROR] Line 22: The import javax.validation.ConstraintValidatorFactory cannot be resolved
         [ERROR] Line 24: The import javax.validation.TraversableResolver cannot be resolved
         [ERROR] Line 93: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 107: TraversableResolver cannot be resolved to a type
   Computing all possible rebind results for 'com.google.gwt.user.client.UserAgentAsserter'
      Rebinding com.google.gwt.user.client.UserAgentAsserter
         Checking rule <generate-with class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
            [WARN] Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are validation-api-<version>.jar and validation-api-<version>-sources.jar on the classpath?
            Specify -logLevel DEBUG to see all errors.
            [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule
   Compiling 12 permutations
      Compiling permutation 0...
      Compiling permutation 1...
      Compiling permutation 2...
      Compiling permutation 3...
      Compiling permutation 4...
      Compiling permutation 5...
      Compiling permutation 6...
      Compiling permutation 7...
      Compiling permutation 8...
      Compiling permutation 9...
      Compiling permutation 10...
      Compiling permutation 11...
   Compile of permutations succeeded
Linking into C:\Users\George\workspace\proggy-trunk\war\proggy
   Link succeeded
   Compilation succeeded -- 138.915s

Original comment by george....@gmail.com on 21 May 2011 at 10:58

GoogleCodeExporter commented 9 years ago
This is a GWT 2.2+ issue and not specific to the gwt-maps project.  Your build 
is actually working, those validation warnings are just spam.

I think that if you were using the little red toolbox icon to compile in Google 
Plugin for Eclipse  you wouldn't see the messages. More info: 
http://code.google.com/eclipse/  If you are already using it, you may just need 
to make a new web application run configuration to bring it up to date.

If you still want to use a handmade Java Application launch config, the 
distributed GWT samples in gwt 2.3.0 add this to the gwt-user Eclipse project 
to resolve these dependencies:

   <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA.jar" sourcepath="/GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar"/>
        <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar"/>

Original comment by zundel@google.com on 21 May 2011 at 11:13

GoogleCodeExporter commented 9 years ago
hmm ok, thanks for your input, it is appreciated.

Original comment by george....@gmail.com on 21 May 2011 at 11:09