|
From: snpe <sn...@sn...> - 2005-07-08 11:48:41
|
Hello,
I'm sorry for double post, but I don't receive first message
=C2=A0 There is yet one problem with this method=20
scenario : type A have 2 public constructor :
=C2=A0 =C2=A0public A () {
=C2=A0 =C2=A0 =C2=A0 // impl
=C2=A0 =C2=A0}
=C2=A0 =C2=A0public A (...any number of parameter..) {
=C2=A0 =C2=A0 =C2=A0 // impl
=C2=A0 =C2=A0}
=C2=A0 =C2=A0When we define bean with no parameter spring-ide return error =
'no constructor with argument 0 ...'
Problem exists only when no argument constructor =C2=A0is last (second if w=
e have more constructors)
This is patch. Please apply
=2D-- /u2/spring-ide/trunk/org.springframework.ide.eclipse.beans.core/src/o=
rg/springframework/ide/eclipse/beans/core/internal/Introspector.java 2005-0=
6-09 05:03:53.000000000 +0000
+++ ./org.springframework.ide.eclipse.beans.core/src/org/springframework/id=
e/eclipse/beans/core/internal/Introspector.java 2005-07-08 03:28:27.0000000=
00 +0000
@@ -48,9 +48,7 @@
=C2=A0 =C2=A0 =C2=A0 =C2=A0return true;
=C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0}
=2D =C2=A0 =C2=A0if (hasImplicitConstructor) {
=2D =C2=A0 =C2=A0 return false;
=2D =C2=A0 =C2=A0}
+ =C2=A0 =C2=A0hasImplicitConstructor =3D false;
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0}
=C2=A0 =C2=A0return hasImplicitConstructor;
|