デグッた?

Kijimuna 1.1.8だと
KIJIMUNA-22
が発生する。

Index: org/seasar/kijimuna/core/internal/dicon/model/ContainerElement.java
===================================================================
--- org/seasar/kijimuna/core/internal/dicon/model/ContainerElement.java	(revision 182)
+++ org/seasar/kijimuna/core/internal/dicon/model/ContainerElement.java	(working copy)
@@ -95,7 +95,8 @@
 			int startLine, int startColumn) {
 		ComponentElement element = new ComponentElement(getProject(), getStorage());
 		HashMap property = new HashMap();
-		property.put("name", new Attribute(name, clazz));
+		property.put("name", new Attribute("name", name));
+		property.put("class", new Attribute("class", clazz));
 		element.setAttributes(property);
 		element.setRootElement(this);
 		element.setStartLocation(depth, startLine, startColumn);
@@ -110,7 +111,8 @@
 			String clazz) {
 		ComponentElement element = new ComponentElement(project, storage);
 		HashMap property = new HashMap();
-		property.put("name", new Attribute(name, clazz));
+		property.put("name", new Attribute("name", name));
+		property.put("class", new Attribute("class", clazz));
 		element.setAttributes(property);
 		// element.setStartLocation(2, 0, 0);
 		element.setRootElement(this);

こんな感じで修正すればKIJIMUNA-22の問題はおきないが。。。

この修正でリファクタリングに問題ないか確認する時間ある? > id:kenmaz

property.put("name", new Attribute(name, clazz));

これだと、getAttribute("name")したときにクラスの情報が取れてしまうような。

あと、

property.put("class", clazz);

に相当する処理が抜けてしまっているような。

ちょろっと見てくれると助かるな。^^);