-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when @JsonbTransient is applied on property without setter #34
Comments
I confirm that this issue exists. Roman, please take a look. |
Signed-off-by: Dmitry Kornilov <[email protected]>
Fixed. |
Thanks Dmitry!
El mié., 30 de agosto de 2017 20:41, Dmitry Kornilov <
[email protected]> escribió:
… Fixed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACAucCpjFbZcWurXQEsVPjxT2rnP7C5Pks5sdazKgaJpZM4OyKsE>
.
|
Hi Dmitry, |
Hi,
This issue is fixed and will be shipped in the next Yasson release (1.0.1). We are working on this release now and it will be available to public next week.
Thanks,
Dmitry
… On 5 Oct 2017, at 15:47, priyal85 ***@***.***> wrote:
Hi Dmitry,
I'm too facing the same issue when using Jersey which internally uses yasson for JSON bindings. In which version the fix is available. I'm still getting the issue in 1.0 which is released on June 2017.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#34 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AI6RHWJSa4yPAu5uL9B_04UL-lu-VloGks5spN38gaJpZM4OyKsE>.
|
This bug was not completely fixed. Here's a simple test case that still fails:
If you uncomment the field declaration, it works. |
hi @bshannon, I tested your code example on 1.0.2 and the the latest code level and it works as expected (empty result). |
Ok, good. Maybe someone should create a unit test and then close this bug? |
Add test to validate fix for issue #34
I'm using Yasson 1.0.
Having the following mapping:
AnnotationIntrospector
searches for a@JsonbTransient
on asetBar(String)
method and since it can't find it, it marks the property as "writeable":But later on
introspectCustomization
it tries to do some checks on that setter method that does not exist:Resulting in the following stacktrace:
Workaround for now is just annotate the getter.
The text was updated successfully, but these errors were encountered: