I couldn't find anything in the docs about short data types so I'm not sure if this is 
a bug. Either way, it just seems wrong to me...

JDK: Sun 1.4.1
Velocity: 1.3 (Release)

        /*** create a class file ***/
        public class NumberTest {
                public short getShort() {
                        return(1);
                }
        }

        /*** now create a velocity template ***/

        #if ( $numberTest.getShort() > 0 )
        Greater than zero!
        #end
        #if ( $numberTest.getShort() < 0 )
        Less than zero!
        #end
        #if ( $numberTest.getShort() == 0 )
        Equals zero!
        #end
        #if ( $numberTest.getShort() )
        Defined!
        #end

        The only output that I get is "Defined!" 

Any commends would be helpful.

Cullin J. Wible


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to