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

Missing 2 else's in InvokerHelper.setAttribute()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • 1.5.5, 1.6-beta-1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: