Skip to content

Comments

AVRO-4234: [Java] Fix byte array JSON serialization in IdlUtils.#3666

Open
lw-mcno wants to merge 1 commit intoapache:mainfrom
lw-mcno:fix-java-byte-array-json-serialization-in-idlutils
Open

AVRO-4234: [Java] Fix byte array JSON serialization in IdlUtils.#3666
lw-mcno wants to merge 1 commit intoapache:mainfrom
lw-mcno:fix-java-byte-array-json-serialization-in-idlutils

Conversation

@lw-mcno
Copy link

@lw-mcno lw-mcno commented Feb 24, 2026

What is the purpose of the change

Fixes AVRO-4234 where IDL formatting / output from schema doesn't work correctly for byte array default values.
Enables tests that were not running, because their names didn't follow the project's configured convention.

Verifying this change

This change added tests and can be verified as follows:

  • Renamed the test classes to IdlUtilsTest to TestIdlUtils and IdlSchemaFormatterFactoryTest to TestIdlSchemaFormatterFactory, so that they actually get found and executed during build.
  • Additional tests in IdlUtilsTest - both java based and the IDL file used in tests also has a byte array default value now.
  • Tests expecting two-space indentation were adjusted, as the formatter code now explicitly puts four space indentations into its output.

Documentation

  • Does this pull request introduce a new feature? no

@github-actions github-actions bot added the Java Pull Requests for Java binding label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant