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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 0.8
    • Fix Version/s: 0.13.0
    • Component/s: Cocoa - Compiler
    • Labels:
      None
    • Patch Info:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: