Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-847

Misuse of inherited property not detected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.6.0
    • 1.4.2
    • General
    • None
    • 81057dcb4d39d0123ea6ba4c4098218e76cd884c

    Description

      Consider the following. In A.qbs:

      Product {
          property bool cpp
      }
      

      In another file:

      A {
          cpp.blubb: "x"
      }
      

      qbs runs this successfully without producing an error message.

      There is code that is supposed to handle such issues in ItemReaderASTVisitor::targetItemForBinding(), but it has no effect because visit(UiScriptBinding *) is called before inheritance is resolved, so the property "cpp" inherited from A is not in the item's list of properties yet and thus no conflict can be detected.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            kandeler Christian Kandeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes