emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

Property name omitted from OGNL exception message #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using? 3.0.2

When trying to access the property "value" on an object without a getValue() 
method the error message does not include the name of the missing property

The message is,

  There is no getter for property named '' in 'class x.y.Z' 

The message should be, 

  There is no getter for property named 'value' in 'class x.y.Z' 

::DETAILS

I get this message,

  There is no getter for property named '' in 'class x.y.Z' 

when I use this OGNL expression with the "value" property missing from 
the bean, 

  <foreach item="i" collection="subjectAreas" open="(" separator="," close=")">#{i.value}</foreach> 

When I add the property to the bean the exception is correctly not thrown. 

The bug is that the exception message fails to include the missing property 
name. 

Original issue reported on code.google.com by jane...@gmail.com on 8 Oct 2010 at 1:36

GoogleCodeExporter commented 9 years ago

Original comment by eduardo.macarron on 29 Jan 2012 at 1:04