Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49963

Symbol lookup returns wrong result

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Symbol lookup returns an descriptor for an rather unrelated class which not annotated with the given symbol name.

      When running the following code in Script Console, the same objects is printed each time.

      import org.jenkinsci.plugins.structs.SymbolLookup
      import hudson.plugins.copyartifact.StatusBuildSelector
      import com.tikal.jenkins.plugins.multijob.MultiJobBuildSelector
        
      def d1 = Jenkins.instance.getDescriptor(StatusBuildSelector)
      println SymbolLookup.get().find(d1.class, 'lastSuccessful')
      
      def d2 = Jenkins.instance.getDescriptor(MultiJobBuildSelector)
      println SymbolLookup.get().find(d2.class, 'lastSuccessful')
      

        Attachments

          Activity

            People

            Assignee:
            jglick Jesse Glick
            Reporter:
            daspilker Daniel Spilker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: