Comments (14)
It's odd. It's like the compiler doesn't see external source files.
It only fails on type contained in jackson-annotations or jax-rs api.
from gwt-jackson.
GWTP is also impacted :
Tracing compile failure path for type 'com.gwtplatform.dispatch.rest.client.DefaultRestRequestBuilderFactory'
[ERROR] Errors in 'com/gwtplatform/dispatch/rest/client/DefaultRestRequestBuilderFactory.java'
[ERROR] Line 144: MediaType cannot be resolved to a variable
[ERROR] Line 26: The import javax.ws cannot be resolved
[ERROR] Line 145: HttpHeaders cannot be resolved to a variable
[ERROR] Line 27: The import javax.ws cannot be resolved
[ERROR] Line 144: HttpHeaders cannot be resolved to a variable
from gwt-jackson.
Yes I use GWTP as well.
from gwt-jackson.
I just compiled my gwtp example with java 1.8, GWT 2.8.0-SNAPSHOT, GWTP 1.4-SNAPSHOT and gwt-jackson-0.7.1-SNAPSHOT without errors.
from gwt-jackson.
I only see the same kind of error in the guava extension. But I see that this is a known issue with guava.
from gwt-jackson.
Could you please link the issue?
from gwt-jackson.
https://code.google.com/p/google-web-toolkit/issues/detail?id=9036
from gwt-jackson.
Not sure it's the same problem though. But there is not much I can do I think.
from gwt-jackson.
You can at least rate the issue.
from gwt-jackson.
I have made some changes to make it compile with java8 but not ready to be merged:
https://github.com/bauna/gwt-jackson/tree/gwt280
from gwt-jackson.
I made a few tweaks around cast. With last snapshot of gwt and guava, I have no issues on compilation and tests.
from gwt-jackson.
It works except for one guava class: TreeMultisetJsonDeserializer (I think that the issue is because it requires that the generic T must be Comparable)
[INFO] Adding '100' new generated units
[INFO] See snapshot: /tmp/gwtjackson.java.lang.ObjectBeanJsonDeserializerImpl7502692652060705091.java
[INFO] Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] [ERROR] Errors in '/home/bauna/dev/skymira/eforms/eforms-ui/target/.generated/gwtjackson/java/lang/ObjectBeanJsonDeserializerImpl.java'
[INFO] [ERROR] Line 140: The method newInstance(JsonDeserializer<T>) in the type TreeMultisetJsonDeserializer is not applicable for the arguments (ObjectBeanJsonDeserializerImpl)
[INFO] See snapshot: /tmp/gwtjackson.java.lang.ObjectBeanJsonDeserializerImpl2465895653503980292.java
[INFO] Tracing compile failure path for type 'gwtjackson.java.lang.ObjectBeanJsonDeserializerImpl'
[INFO] [ERROR] Errors in '/home/bauna/dev/skymira/eforms/eforms-ui/target/.generated/gwtjackson/java/lang/ObjectBeanJsonDeserializerImpl.java'
[INFO] [ERROR] Line 140: The method newInstance(JsonDeserializer<T>) in the type TreeMultisetJsonDeserializer is not applicable for the arguments (ObjectBeanJsonDeserializerImpl)
[INFO] [ERROR] Hint: Check that the type name 'gwtjackson.java.lang.ObjectBeanJsonDeserializerImpl' is really what you meant
[INFO] [ERROR] Hint: Check that your classpath includes all required source roots
[INFO] 2015-11-26 14:35:28,085 user:na INFO org.hibernate.validator.util.Version - Hibernate Validator 4.1.0.Final
[INFO] 2015-11-26 14:35:28,091 user:na INFO org.hibernate.validator.engine.resolver.DefaultTraversableResolver - Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
from gwt-jackson.
The deserializers no longer require Comparable.
from gwt-jackson.
Seems to be working now
from gwt-jackson.
Related Issues (20)
- No source code is available for type com.fasterxml.jackson.databind.ObjectMapper; did you forget to inherit a required module? HOT 3
- Support for java.util.Optional HOT 1
- Expected a string but was BEGIN_OBJECT at line 1 column 2 HOT 1
- Please REVERT the dependency on Jackson 2.9.*, Jackson 2.9.* is NOT compatible with GWT. HOT 2
- Support for @JsonCreator(mode = Mode.DELEGATING)
- Custom deserializer compilation error
- Getter returning Optional<T> of nullable T causing compilation error HOT 2
- GWT 2.6.1 + GwtJackson 0.15.3 HOT 3
- JsonSerializationContext.Builder override not working as expected
- Error:GWT Compiler: No source code is available for type com.fasterxml.jackson.annotation.JsonTypeInfo.As; did you forget to inherit a required module?
- JsonTypeInfo defaultImpl attribute not working HOT 1
- Update jackson dependency to 2.9.8
- Update javapoet dependency to 1.11.1
- Support for JsonFormat.Feature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE
- Annotations on Java8 default interface are ignored HOT 1
- Can't figure out the stackoverflow I am getting
- More (de)serialization customization (JsonFilter or equivalent)
- Double.NaN / NEGATIVE_INFINITY / POSITIVE_INFINITY - Numeric values must be finite, but was
- Many compile problems
- I want to deserialize a property with any type of value.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-jackson.