<div dir="ltr">$B$*@$OC$K$J$j$^$9!#@nF;$H?=$7$^$9!#(B<br><br>S2BeanUtils$B$K$*$$$F!"%W%j%_%F%#%V7?$N%W%m%Q%F%#$r;}$D(BBean$B$X$N%3%T!<$G(B<br>NullPointerException$B$H$J$C$F$7$^$$$^$9!#(B<br><br>$B;HMQ(BVers$B!'(BS2.4.27<br>$B%(%i!<$H$J$k%3!<%I!'(B<br>$B!!(Bpublic class Dest {<br>$B!!!!!!(Bpublic int intval;<br>$B!!(B}<br><br>$B!!(Bpublic class Src {<br>
$B!!!!!!(Bpublic String intval = "1";<br>$B!!(B}<br><br>$B!!!!(B:<br>$B!!!!(B:<br>Dest dest = Beans.createAndCopy(Src.class, new Src())<br>$B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(B.execute();<br><br><br>$B$G(BNullPointerException$B$H$J$j$^$9!#(B<br><br><br>$B%=!<%9$r8+$?$H$3$m!"(B<br>
org.seasar.framework.beans.util.AbstractCopy$B$N(B484$B9TL\$G(B<br>$B%3%T!<@h%W%m%Q%F%#$N?F%/%i%9<hF@$N%k!<%W$G!"%W%j%_%F%#%V7?$N?F%/%i%9$,(Bnull$B$G$"$k$?$a(B<br>$B$3$N$h$&$J5sF0$K$J$C$F$$$k$h$&$G$9!#(B<br><br>$B$3$3$r(B<br>for (Class<?> clazz = targetClass; clazz != Object.class; clazz = clazz<br>$B!!!!!!!!!!"-(B<br>
for (Class<?> clazz = targetClass; (clazz != Object.class && clazz != null); clazz = clazz<br><br>$B$N$h$&$KJQ99$9$l$PF0:n$9$k$h$&$G$9$,!"$4BP1~$$$?$@$1$^$9$G$7$g$&$+!)(B<br><br>$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B<br><br></div>