Giter Site home page Giter Site logo

Comments (6)

christophercurrie avatar christophercurrie commented on May 24, 2024

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.

jendap avatar jendap commented on May 24, 2024

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.

christophercurrie avatar christophercurrie commented on May 24, 2024

I completely understand, this is my highest priority to fix for 2.2.1.

from jackson-module-scala.

christophercurrie avatar christophercurrie commented on May 24, 2024

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.

jendap avatar jendap commented on May 24, 2024

Thanks!

from jackson-module-scala.

cimbul avatar cimbul commented on May 24, 2024

Great! Thanks for the quick turnaround. No need for an urgent patch from my perspective.

from jackson-module-scala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.