[seasar-javadoc:379] CyclicReferenceRuntimeException

Hideaki Suzuki suzuki @ uinet.or.jp
2006年 7月 15日 (土) 22:48:29 JST


鈴木(belltree)です。

サインアップしました。 パートII  ^^;
CyclicReferenceRuntimeException Milestone 1 です。

p.s.
s2-frameworkの中で、この例外をスローしているのは
SingletonComponentDeployer#assemble()
だけみたいですね。(eclipseのCtrl+Shift+G使用)

テストケースもsingletonの場合のみだったので、試しに
instance属性が "prototype" の場合はどうなるのだろうということで、
実験君してみました。

<components namespace="fugas">
  <component name="fuga" class="sample.impl.FugaImpl"instance="prototype">
    <arg>fuga</arg>
    <property name="name">"I'm Fuga."</property>
  </component>
</components>

java.lang.StackOverflowError が出るんですね…そりゃそうですよね…恥;;
ま、こんなdicon書く人いませんね。

以上、現場より、実験君がお送りしました。 ^^;;;

/** 
 * @auther Hideaki Suzuki
 * @contact suzuki at uinet.or.jp
 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CyclicReferenceRuntimeException.java
Type: application/octet-stream
Size: 2129 bytes
Desc: not available
Url : http://ml.seasar.org/archives/seasar-javadoc/attachments/20060715/7b865834/attachment-0001.obj 


seasar-javadoc メーリングリストの案内