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

Symbol lookup returns wrong result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Postponed
    • Icon: Major Major
    • None
    • core 2.107
      structs 1.14
      multijob 1.29
      copyartifact 1.39

      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')
      

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

              Created:
              Updated:
              Resolved: