Tatu Saloranta
unread,May 9, 2021, 3:08:56 PM5/9/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jacks...@googlegroups.com
Based on a bug report that I first thought was invalid, I (finally?)
got an idea that seems worth considering -- what if following usage:
--------------
public class MyValue {
public MyValue(@JsonValue List<String> words) {
...
}
@JsonValue
public List<String> asList() { .... }
}
worked as... well, you might except, that is, as an alias for:
public class MyValue {
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
public MyValue(List<String> words) { ... }
}
--------------
WDYT?
This might be even more compact for Kotlin -- or maybe not, I am not
quite sure how annotations are bound from source to underlying
accessors.
-+ Tatu +-