Mantis - Resin
Viewing Issue Advanced Details
6268 minor always 07-17-19 14:04 07-17-19 14:09
ferg  
ferg  
normal  
closed 4.0.62  
fixed  
none    
none 4.0.63  
0006268: JSP EL foo.bar expression with get() and getBar()
(rep by Mitsuo Shimomura)

When trying to show class property value which has get method, an error will occur.
For example, assume that Customer class has “get” method, name property and its getter and setter.


    public Customer {
        private String name;
        public String getName() { return name; }
        public void setName(String name) { this.name = name; }
        public String get() { return "any"; }
    }


In this case, when writing ${customer.name} to jsp, an error will occur.

If it has “get” method from the code below, propName will become “”. Then empty propName will be passed to new BeanProperty(baseClass, propName, method, null), name of new PropertyDescriptor(name, getter, setter) is empty and exception will be thrown.

Notes
(0006908)
ferg   
07-17-19 14:09   
jsp/325c