Fix Jackson deprecation warnings in MessagePackFactory by xerial · Pull Request #903 · msgpack/msgpack-java

@xerial @claude

Replace deprecated _createContext(Object, boolean) calls with
_createContext(ContentReference, boolean) to eliminate warnings
when running tests with Jackson 2.18.4.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

@github-actions bot added the bug label

Jul 19, 2025
Replace deprecated JsonParser methods with their current equivalents:
- getCurrentName() → currentName()
- getTokenLocation() → currentTokenLocation()
- getCurrentLocation() → currentLocation()

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Replace deprecated ParserMinimalBase constructor with StreamReadConstraints
- Add non-deprecated location methods (currentTokenLocation, currentLocation)
- Update GeneratorBase constructor to use 4-parameter form with IOContext and JsonWriteContext
- Add new createKeySerializer method signature for Jackson 2.18
- Keep deprecated methods for backward compatibility

All tests pass and Jackson deprecation warnings are eliminated.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

@xerial xerial deleted the fix-jackson-deprecation-warnings branch

July 19, 2025 19:40