[JIRA] [structs-plugin] (JENKINS-33785) ClassLoader problem with SymbolLookup

2016-04-07 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker closed an issue as Not A Defect 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-33785 
 
 
 
  ClassLoader problem with SymbolLookup  
 
 
 
 
 
 
 
 
 

Change By:
 
 Daniel Spilker 
 
 
 

Status:
 
 Open Closed 
 
 
 

Resolution:
 
 Not A Defect 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [structs-plugin] (JENKINS-33785) ClassLoader problem with SymbolLookup

2016-03-24 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-33785 
 
 
 
  ClassLoader problem with SymbolLookup  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Kohsuke Kawaguchi 
 
 
 

Components:
 

 structs-plugin 
 
 
 

Created:
 

 2016/Mar/24 3:54 PM 
 
 
 

Environment:
 

 Jenkins 1.609  Struts plugin 1.1 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Daniel Spilker 
 
 
 
 
 
 
 
 
 
 
I added a symbol to a plugin and added the org.jenkins-ci:symbol-annotation:1.1 lib to the plugin's dependencies as recommended. 
When testing the symbol lookup in Script Console, the lookup fails: 

 

import hudson.triggers.TriggerDescriptor
import com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger
import org.jenkinsci.plugins.structs.SymbolLookup
import org.jenkinsci.Symbol

println SymbolLookup.get().find(TriggerDescriptor, 'gerrit')
println SymbolLookup.get().find(Object, 'gerrit')
println GerritTrigger.DescriptorImpl.annotations
println GerritTrigger.DescriptorImpl.isAnnotationPresent(Symbol)
println GerritTrigger.DescriptorImpl.isAnnotationPresent(GerritTrigger.classLoader.loadClass(Symbol.name))
println GerritTrigger.DescriptorImpl.isAnnotationPresent(Jenkins.instance.pluginManager.uberClassLoader.loadClass(Symbol.name))
println Symbol.classLoader