cbuschka / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 0 forks source link

Support of "import static" #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The script below returns an error.

import static org.junit.Assert.assertTrue;

asserttrue(true);

Original issue reported on code.google.com by erwan.bo...@gmail.com on 13 Feb 2012 at 8:49

GoogleCodeExporter commented 8 years ago
"import static" is currently not supported

Original comment by pejob...@gmail.com on 14 Feb 2012 at 7:26

GoogleCodeExporter commented 8 years ago
Is it planned in a next release candidate ?

Thanks

Original comment by erwan.bo...@gmail.com on 14 Feb 2012 at 8:31

GoogleCodeExporter commented 8 years ago
I'll try to dig into it, but this is a bigger change.

Original comment by pejob...@gmail.com on 14 Feb 2012 at 9:48

GoogleCodeExporter commented 8 years ago
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 Kaygoro...@gmail.com on 17 Dec 2012 at 7:14