SI-4695中概述了这种限制:在类文件存在的情况下,包装对象行为不当。
如SI-2089中所建议的(命名限制使某些jar无法使用),您可以尝试使用“
resolve-term-conflict”,如变更集25145中实现的:
添加了一个
-Y解决包和对象之间的名称空间冲突的选项。
这是一种钝器:如果人们有许多这样的冲突,需要以个体细微的方式解决,那么他们可能会走运。
val termConflict = ChoiceSetting ("-Yresolve-term-conflict", "strategy", "Resolve term conflicts", 113 List("package", "object", "error"), "error")// Some jars (often, obfuscated ones) include a package and// object with the same name. Rather than render them unusable,// offer a setting to resolve the conflict one way or the other.// This was motivated by the desire to use YourKit probes, which// require `yjp.jar` at runtime. See SI-2089.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)