提交 4c6dd013 编写于 作者: J James Nord

[JENKINS-30820] pick up the new bytecode-compat-t.

The new version of the BCT does not generate stackMap if the original code
did not contain stack maps.  Further more the new version takes a
classloader to use so that it can load classes when searching for the
common parent class.
上级 21f36fb2
......@@ -200,7 +200,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>bytecode-compatibility-transformer</artifactId>
<version>1.6.2</version>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci</groupId>
......
......@@ -797,7 +797,7 @@ public class ClassicPluginStrategy implements PluginStrategy {
@Override
protected Class defineClassFromData(File container, byte[] classData, String classname) throws IOException {
if (!DISABLE_TRANSFORMER)
classData = pluginManager.getCompatibilityTransformer().transform(classname, classData);
classData = pluginManager.getCompatibilityTransformer().transform(classname, classData, this);
return super.defineClassFromData(container, classData, classname);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册