Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3120 Support Next Java LTS (Java 17)
  3. AVRO-3123

Avro tools tests break with Java 17 break due to difference on File generation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • java
    • None

    Description

      TestSpecificCompilerTool.testCompileProtocol concretely fails

      [ERROR] org.apache.avro.tool.TestSpecificCompilerTool.testCompileSchemaWithExcludedSetters Time elapsed: 0.034 s <<< FAILURE!
      org.junit.ComparisonFailure: Found file: target/compiler/output/avro/examples/baseball/NoSettersTest.java does not match expected file: src/test/compiler/output/NoSettersTest.java expected:<...ODER.decode(b); } [private java.lang.CharSequence name;] private java.lang....> but was:<...ODER.decode(b); } [ private java.lang.CharSequence name; ] private java.lang....>
      at org.junit.Assert.assertEquals(Assert.java:117)
      at org.apache.avro.tool.TestSpecificCompilerTool.assertFileMatch(TestSpecificCompilerTool.java:226)
      at org.apache.avro.tool.TestSpecificCompilerTool.testCompileSchemaWithExcludedSetters(TestSpecificCompilerTool.java:99)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            iemejia Ismaël Mejía
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: