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

Cocoa Generator shouldn't declare getter/setter methods when previously declared by @property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 0.8
    • 0.13.0
    • Cocoa - Compiler
    • None
    • Patch Available

    Description

      The use of @property and then declaring the getter/setter methods can confuse the compiler, leading to compiler errors such as:

      error: type of property 'someProperty' does not match type of accessor 'setSomeProperty:'

      I would propose that based on the existing #if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) that the getter/setter methods are not declared.

      Attachments

        1. THRIFT-1506.patch
          2 kB
          Steve White

        Activity

          People

            jking3 James E. King III
            swhite Steve White
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: