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
{{ message }}
TokenStreamFactory.createNonBlockingByteBufferParser() return type wrong #1527
@hb16 the method signature is wrong - can you use JsonFactory for now? JsonFactory has the method and you can cast its return type to ByteBufferFeeder. We will try to fix the return types in an upcoming release.
changed the title [-]createNonBlockingByteBufferParser() return type[/-][+]`TokenStreamFactoy.createNonBlockingByteBufferParser()` return type wrong[/+]on Dec 12, 2025
changed the title [-]`TokenStreamFactoy.createNonBlockingByteBufferParser()` return type wrong[/-][+]`TokenStreamFactory.createNonBlockingByteBufferParser()` return type wrong[/+]on Dec 12, 2025
@pjfanning I think part of the problem was override in JsonFactory that used too generic return type, instead of indicating mismatch with TokenStreamFactory base typing.
Activity
pjfanning commentedon Dec 12, 2025
@hb16 the method signature is wrong - can you use JsonFactory for now? JsonFactory has the method and you can cast its return type to ByteBufferFeeder. We will try to fix the return types in an upcoming release.
cowtowncoder commentedon Dec 12, 2025
Definitely copy-paste fail. Embarrassing.
[-]createNonBlockingByteBufferParser() return type[/-][+]`TokenStreamFactoy.createNonBlockingByteBufferParser()` return type wrong[/+][-]`TokenStreamFactoy.createNonBlockingByteBufferParser()` return type wrong[/-][+]`TokenStreamFactory.createNonBlockingByteBufferParser()` return type wrong[/+]cowtowncoder commentedon Dec 12, 2025
Fixed by #1528
pjfanning commentedon Dec 12, 2025
You'd really have expected that the Java parser would have prevented this.
cowtowncoder commentedon Dec 12, 2025
@pjfanning I think part of the problem was override in
JsonFactorythat used too generic return type, instead of indicating mismatch withTokenStreamFactorybase typing.