Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3256

IDL: annotations on type references change the referenced type

    XMLWordPrintableJSON

Details

    Description

      The IDL compiler allows annotations on type references, and applies them on the referenced type.

      As can be seen in the test output file simple.avpr, the type MD5 has the property "foo"="bar".

      But in the input file simple.avdl:

      • The type definition in lines 39-40 has no such property
      • Line 53 adds the property to the type for the field hash,
      • But it's also silently added to the type for the field nullableHash in line 55

      Solution: do not accept annotations for type references.

      Attachments

        Issue Links

          Activity

            People

              opwvhk Oscar Westra van Holthe - Kind
              opwvhk Oscar Westra van Holthe - Kind
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h