Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1170

Thrift Generated Code and Java 5

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 0.7
    • Java - Compiler
    • None
    • Patch Available

    Description

      The Thrift Java compiler creates code that is not compliant with Java 5.

      One issue is the @Override annotation on the clear() method.
      The other issue is creating a IOException with a TException as a parameter in writeObject and readObject.

      The attached patch creates a new option for the compiler, java5, which outputs java 5 compliant code.

      Attachments

        1. java5_trunk.patch
          1 kB
          Greg Moulliet
        2. java5.patch
          2 kB
          Greg Moulliet

        Activity

          People

            gmoulliet Greg Moulliet
            gmoulliet Greg Moulliet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: