Varargs
Brian Pontarelli <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I've read that vararg method calls were added to 2.4.12 but I can't find any good docs on how to use them and if there are any special requirements. I have a varargs method that I'm trying to invoke from a template and I'm getting an argument type mismatch exception:
public boolean hasRoles(String... roles) {
...
}
[#if user.hasRoles(["foo", "bar"])]
…
[/#if]
Anyone know how to fix this?
-bp
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1