Comments (6)
No, not at time; looks like this is a bit of an oversight in my testing of the new introspection, so thanks for highlighting this use case, and I'm glad you have a workaround.
In the short term, deferring to the @BeanProperty
annotations sounds like the right call, and if there's interest I can look into adding some configuration that will allow you to configure which methods get preferred.
from jackson-module-scala.
This is quite a problem. A lot of scala code has java style getters and setters for java interop. Upgrade to jackson 2.2 breaks working code. And the workaround has it's limitations.
In our case we use scala code - no java getters and setters. So we can't remove ScalaClassIntrospectorModule. We also use documentation in Swagger. It has (in order to work with other frameworks) java style getters as well scala fields. So we would need to remove ScalaClassIntrospectorModule. That's not easy!
For example apiVersion() (from var in constructor) and getApiVersion() manually written in:
https://github.com/wordnik/swagger-core/blob/master/modules/swagger-core/src/main/scala/com/wordnik/swagger/core/Documentation.scala#L50
from jackson-module-scala.
I completely understand, this is my highest priority to fix for 2.2.1.
from jackson-module-scala.
I've just pushed a fix to master that should address this issue, and it will go out with Jackson 2.2.1. If there's an urgent need for a patched "2.2.0-1" for this, open another issue and I'll see what I can do.
from jackson-module-scala.
Thanks!
from jackson-module-scala.
Great! Thanks for the quick turnaround. No need for an urgent patch from my perspective.
from jackson-module-scala.
Related Issues (20)
- Update 2.15 release notes with Scala changes HOT 2
- Release 2.14.3 HOT 2
- Upgrade to Scala 3.3.0
- Release 2.15.1 HOT 1
- support deserializing Scala Iterators HOT 1
- Release 2.15.2 HOT 2
- Dependency on .class and .tasty files causes footprint bloat for GraalVM NativeImage HOT 5
- Failure to deserialise scala Map when default typing is activated HOT 10
- DefaultScalaModule breaks deserialization of java classes HOT 13
- 2.16 jackson-databind deserialization changes have broken support for the scala.util.Either class HOT 1
- Collection of case classes deserialized as Collection of Map2 HOT 4
- Release 2.15.3 HOT 4
- Release 2.16.0-rc1 HOT 1
- error when deserializing yaml HOT 2
- Release 2.16.0 HOT 2
- release jackson-module-scala v2.12 for Scala 2.10 HOT 2
- Release 2.16.1 HOT 1
- Update `2.17` branch to `2.17.0-rc1-SNAPSHOT` HOT 2
- Release 2.15.4 HOT 1
- Release 2.17.0-rc1 HOT 1
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 jackson-module-scala.