beanshell2 icon indicating copy to clipboard operation
beanshell2 copied to clipboard

Support of "import static"

Open GoogleCodeExporter opened this issue 10 years ago • 4 comments

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

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

"import static" is currently not supported

Original comment by [email protected] on 14 Feb 2012 at 7:26

  • Changed title: Support of "import static"

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

Is it planned in a next release candidate ?

Thanks

Original comment by [email protected] on 14 Feb 2012 at 8:31

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

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

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

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

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter