Closed bantu closed 3 years ago
@bantu Looks like I can't push to your branch, but this was my edit:
QuantityJsonDerserializer.java:92
(right before return
statement:
if(value == null){
throw new JsonParseException(jp, "Value not found for quantity type.");
}
if(unit == null){
throw new JsonParseException(jp, "Unit not found for quantity type.");
}
if(scale == null){
throw new JsonParseException(jp, "Scale not found for quantity type.");
}
@bantu Looks like I can't push to your branch
You need to accept my repo invitation.
That would help! added my changes, thanks
I just discovered that this implementation does not at all work for objects containing multiple Quantity objects.
I suppose that while ((currentToken = jp.nextValue()) != null) {
eats all tokens. Note that I wrote this code quite some time ago.
Reimplemented and simplified. Commits should probably be squashed.
Unfortunately it breaks the build ;-/
@bantu The common library was missing in module-info
.
Would not be good to add a serializer too? Just as matter of forcing same serialization field names - even Jackson by default use the class member name/method name.
@lucasvc The Jackson already serializes values fine, just doesn't know off the back how to deserialize
@keilw what's the status on this? need another pull request out?
@GregJohnStewart I know, as I said
even Jackson by default use the class member name/method name
But then you leave to Jackson that task, which could change in the future.
Unfortunately it breaks the build ;-/
Hmm. Why only after merge?
@keilw It looks like this change has not shipped yet. Are there any plans on shipping it any time soon?
+1 on having a release with this change
We plan an MR2 of JSR 385 in the course of this quater, so there will be new releases of uom-lib-common (before the RI) and the other libraries (after MR2 of API and RI) soon anyway. Check out the release plan for MR2 for the overall progress. There are still some critical parts, I assume we'll have them done by the end of Q1, if we get a hand with some tasks, it might be sooner ;-)
How could we be of some help?
Fix #60
As requested here: https://github.com/unitsofmeasurement/uom-lib/issues/60#issuecomment-938682634
This change is