It is possible to find problem outside generated code for optimization: <code>
setValues(bean,values); }catch( NullPointerException npe){ for( int i = 0; i < propertyCount; i++ ){ if( types[i].isPrimityve() && values[i] == null ){ throw new NullPointerException( "can not set null for " + names[i] ); } } } </code> ClassCastExeption can be handled the same way. ----- Original Message ----- From: "Gavin King" <[EMAIL PROTECTED]> To: "Chris Nokleberg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 8:25 PM Subject: Re: [Hibernate] Re: cglib reflect package > > >p.s. the BulkBean class also now throws an exception detailing which > >property failed, so you can print a better error message. > > > > > > Hooray! You have no idea how much forum posts this will save us.... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel