About ZeroArgumentNonVoidMethodPolicy.METHOD_ONLY.

If I set:
recordZeroArgumentNonVoidMethodPolicy=freemarker.ext.beans.ZeroArgumentNonVoidMethodPolicy.METHOD_ONLY

and add this method to a record:

public boolean isActive() {
    return false;
}

 Since it's a bean property read method, I can successfully call:
${myRecord.active?c}


Since bean property read methods take zero arguments and have non-void returns,
I was wondering why ZeroArgumentNonVoidMethodPolicy.METHOD_ONLY got spared the 
"_UNLESS_BEAN_PROPERTY_READ_METHOD" treatment.


Cheers,
Simon






On Saturday 18 May 2024 at 17:20:38 BST, Daniel Dekany <ddek...@apache.org> 
wrote: 





Anyone else plans to try this before release? (Because if not, there's
no need to wait more.)

Reply via email to