Change By: Martin Schröder (27/Jan/14 7:02 PM)
Description: Due to a bug in Stapler-Groovy, it is impossible for plugins to define/use custom Taglibs that are written in Groovy. Jelly taglibs work fine, but groovy taglibs always throw an NPE as can be seen here:

http://jenkins-ci.361315.n4.nabble.com/Groovy-Taglibs-td4662779.html

The reason is a bug in Stapler, that causes the Groovy File resolution to fail with an NPE. Additionally, it also does not search the entire ClassLoader tree, and thus is incapable of finding the Groovy files (which causes the above NPE in the first place).


Replication of this issue is simple, by trying to create an empty Groovy taglib
 inside of a Plugin  and then trying to use its tag from either a Groovy or Jelly UI file.

DO NOTE: This issue does not appear for Jenkins-Core, because the core uses a different ClassLoader than the plugins. As such, Stapler will find the Groovy files in the outermost ClassLoader and thus not throw the NPE.


The bug will be fixed as soon as the following patch is merged into the stapler source code and the Jenkins dependency to stapler updated:
https://github.com/stapler/stapler/pull/31
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
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/groups/opt_out.

Reply via email to