You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Version 2.1 of the Jakarta JSON Processing API added the method currentEvent() to the JsonParser interface. This method has a default implementation that throws UnsupportedOperationException.
Yasson implements JSON-P 2.1, but it does not override the default implementation for JsonParser.currentEvent().
This is likely an oversight. It's easy to miss new methods in interfaces when they have a default implementation.
To Reproduce
Initialize a YassonParser parser.
Call parser.next()
Call parser.currentEvent()
Observe that UnsupportedOperationException is thrown.
Expected behavior
parser.currentEvent() returns the last event returned by parser.next().
The text was updated successfully, but these errors were encountered:
Describe the bug
Version 2.1 of the Jakarta JSON Processing API added the method
currentEvent()
to theJsonParser
interface. This method has a default implementation that throwsUnsupportedOperationException
.Yasson implements JSON-P 2.1, but it does not override the default implementation for
JsonParser.currentEvent()
.This is likely an oversight. It's easy to miss new methods in interfaces when they have a default implementation.
To Reproduce
YassonParser parser
.parser.next()
parser.currentEvent()
UnsupportedOperationException
is thrown.Expected behavior
parser.currentEvent()
returns the last event returned byparser.next()
.The text was updated successfully, but these errors were encountered: