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

hasProperty and respondsTo on Object are broken as they're not defined as static in DGM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.6
    • 1.6.1, 1.7-beta-1
    • None
    • None

    Description

      In DGM respondsTo and hasProperty are not declared static:

        public java.util.List respondsTo(java.lang.Object o, java.lang.String s) { /* compiled code */ }
          
          public groovy.lang.MetaProperty hasProperty(java.lang.Object o, java.lang.String s) { /* compiled code */ }
        
      

      Hence they are broken and don't work as expected. Such core behavior should also be covered by unit tests to ensure that they actually work

      Attachments

        1. 3363.diff
          2 kB
          Chanwit Kaewkasi

        Activity

          People

            paulk Paul King
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: