Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2726

Missing 2 else's in InvokerHelper.setAttribute()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.5, 1.6-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      It seems we are missing some else's in this method

          public static void setAttribute(Object object, String attribute, Object newValue) {
              if (object instanceof Class) {
                  metaRegistry.getMetaClass((Class) object).setAttribute(object, attribute, newValue);
              }
              if (object instanceof GroovyObject) {
                  ((GroovyObject) object).getMetaClass().setAttribute(object, attribute, newValue);
              }
              metaRegistry.getMetaClass(object.getClass()).setAttribute(object, attribute, newValue);
          }
      

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              rene.de.bloois René de Bloois
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: