提交 12904a50 编写于 作者: K kohsuke

while loading LabelAtomProperties, they may refer to other labels, which can cause cycles.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34590 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3840827e
......@@ -1393,7 +1393,9 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
return (LabelAtom)l;
// non-existent
labels.putIfAbsent(name,new LabelAtom(name));
LabelAtom la = new LabelAtom(name);
if (labels.putIfAbsent(name, la)==null)
la.load();
}
}
......
......@@ -66,7 +66,6 @@ public class LabelAtom extends Label implements Saveable {
public LabelAtom(String name) {
super(name);
load();
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册