Java generics in zul files

asked 2012-05-07 10:05:22 +0800

boazb gravatar image boazb


I am using the following :
List<Map<String,String>> rslist = dao.getListData("select bla from x");

for (Map<String,String> record : rslist) {

this doesn't work (it stops parsing at the generics <Map<String,String>>
Is there are way to work with java generics in .zscripts ?

Help will be appreciated


delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2012-05-07 13:12:50 +0800

cvarona gravatar image cvarona
554 1 6

To the best of my knowledge the original beanshell project was abandoned long before generics came into existence. Being an interpreted language there is no actual need for it, all the same, unless you intend to copy&paste your static java code.

There is a beanshell fork called beanshell2, they according to this they have implemented generics parsing support, although I have not tried it myself.

With kind regards

César Varona

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-05-07 10:05:22 +0800

Seen: 113 times

Last updated: May 07 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More