beanshell2
beanshell2 copied to clipboard
Support of "import static"
The script below returns an error.
import static org.junit.Assert.assertTrue;
asserttrue(true);
Original issue reported on code.google.com by [email protected] on 13 Feb 2012 at 8:49
"import static" is currently not supported
Original comment by [email protected] on 14 Feb 2012 at 7:26
- Changed title: Support of "import static"
Is it planned in a next release candidate ?
Thanks
Original comment by [email protected] on 14 Feb 2012 at 8:31
I'll try to dig into it, but this is a bigger change.
Original comment by [email protected] on 14 Feb 2012 at 9:48
As I know "import static" is supported and was supported in original project.
but you have to type "static import" instead.
At least it will work with wild card e.g.
"static import org.junit.Assert.*;"
Original comment by [email protected] on 17 Dec 2012 at 7:14