1 Reply Latest reply on Oct 6, 2008 1:16 PM by Pete Muir

    jboss-el bug? incorrect exception message

    Gergely Nagy Newbie

      I'm not sure where jboss-el bugs are supposed to be reported, so here it goes.


      While trying to resolve this:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=140780
      we found an incorrect exception message, which was rather misleading.


      We got this:
      Property 'rowIndex' readable on type int


      Instead of this:
      Property 'rowIndex' readable on type org.ajax4jsf.component.SequenceDataAdaptor$1


      Currently the type of the property is reported, not the type on which the getter is not found.



      To fix this issue, in jboss-el-2.0.1.GA:BeanElResolver.java, the throw clause near line 253 should read:


           throw new PropertyNotFoundException(message(ctx,
                "propertyNotReadable", new Object[] {
                     this.owner.getName(), descriptor.getName() }));
      



      instead of:


           throw new PropertyNotFoundException(message(ctx,
                "propertyNotReadable", new Object[] {
                     type.getName(), descriptor.getName() }));