I have a bunch of beanshell and I would simply like to do a dummy junit test that "compile" each of them to ensure that they are valid.

Eval of the interpreter seems to do some syntaxic check but no real compilation verification.

Is there any way of doing this?

Any idea?

Thanks a lot