Do you use lombok in client code? If so, you may try to align your JDT 
compiler version with one that used by GWT.

If lombok is used only in server code, then ensure that the server code and 
the client code, both are placed in different maven modules.

Maybe there are other ways, but I'm not familiar enough with lombok.


On Monday, April 27, 2020 at 4:50:25 PM UTC+3, Alexander Tarasov wrote:
>
> thanks, you were right. 
> but we use JDT ECJ for lombok support.
> without lombok does not work unfortunately 
>
> понедельник, 27 апреля 2020 г., 12:28:48 UTC+1 пользователь Alexander 
> Leshkin написал:
>>
>> Maybe you have an overriden version of the JDT compiler on classpath that 
>> is incompatible with JDT compiler version from GWT dependencies.
>>
>> On Monday, April 27, 2020 at 2:09:50 PM UTC+3, Alexander Tarasov wrote:
>>>
>>> hi
>>> 1) there is no gwt-maven-plugin:2.9.0-RC1 so I used 2.8.2. 
>>> 2) i have the following error, looks strange because TryStatement 
>>> definitely has public "resources" field
>>>
>>> com.google.gwt.dev.jjs.InternalCompilerException: Error constructing 
>>> Java AST
>>>
>>> [ERROR]              at com.google.gwt.dev.jjs.impl.GwtAstBuilder.
>>> translateException(GwtAstBuilder.java:4033)
>>>
>>> [ERROR]              at com.google.gwt.dev.jjs.impl.
>>> GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:2190)
>>>
>>> [ERROR]              at org.eclipse.jdt.internal.compiler.ast.
>>> TryStatement.traverse(TryStatement.java:1127)
>>>
>>> [ERROR] Caused by: java.lang.NoSuchFieldError: resources
>>>
>>> [ERROR]              at com.google.gwt.dev.jjs.impl.
>>> GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:2165)
>>>
>>> [ERROR]              ... 38 more
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/89c4a509-6de3-46e0-bb77-59b0a793aad9%40googlegroups.com.

Reply via email to