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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • 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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              swhite Steve White
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: