FasterXML / FasterXML/jackson-module-scala

potentially implement annotation introspector findPrimaryCreator

Open
#681 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Scala
Stars
506
Forks
138
Avg merge
3h 6m
Merged PRs (30d)
48

Description

This method was added the AnotationIntrospector base class in jackson-databind 2.18 and returns null by default.
From my testing, the declaredConstructors are what jackson-databind picks up via Java reflection and appears to be accurate.

```
override def findPrimaryCreator(config: MapperConfig[_], valueClass: AnnotatedClass,
declaredConstructors: java.util.List[PotentialCreator],
declaredFactories: java.util.List[PotentialCreator]): PotentialCreator = ???
```

I'm reluctant to make changes to the Scala introspector. I have no open issues that I think this will help me fix and I'm worried that implementing something could change behaviour for some Scala class use cases.

My view is to examine its use if there are real world issues reported for jackson-module-scala.

Fyi @cowtowncoder

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.