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

Generated Java classes for specific records contain unchecked casts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.3
    • 1.9.0
    • java
    • None

    Description

      The generated Java classes for specific records cause compiler warnings using Oracle/Sun Java 1.6, since it doesn't support @SuppressWarnings("all"). Instead could we change it to @SuppressWarnings("unchecked")? Only "unchecked" and "deprecation" are mentioned Java Language Specification – the rest are specific to compiler vendors.

      Attachments

        1. AVRO-1047.patch
          3 kB
          Garrett Wu
        2. suppress-warnings.tar.gz
          0.5 kB
          Garrett Wu

        Issue Links

          Activity

            People

              nielsbasjes Niels Basjes
              gwu Garrett Wu
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: