Open GoogleCodeExporter opened 8 years ago
Yes there are some known quirks with verifyStatic. The problem is that it's
hard to do something about.. There are several possibilities that I can think
of that may work better:
1.
new VerifyStatic() {{
MyClass.myStatic();
}};
2. verifyStatic(new StaticVerification() {
@Override
public void verify() {
MyClass.myStatic();
}
}
3. Using Java 8:
verifyStatic( () -> {MyClass.myStatic();} )
Original comment by johan.ha...@gmail.com
on 7 Dec 2012 at 6:18
Hi Johan
I do understand this is difficult in the current way.
In fact I was more thinking about
1) tracking the issue
2) updating the doc to state that more clearly
...
9) do somthing about it :)
a) the way you suggest
b) something more dirty like
verifyStaticBegin();
MyClass.myStatic();
verifyStaticEnd();
Original comment by thomas.b...@gmail.com
on 7 Dec 2012 at 9:02
Could you help out with a bit of clarifying documentation in the Javadoc for
this and submit a patch?
Original comment by johan.ha...@gmail.com
on 7 Dec 2012 at 9:45
Original issue reported on code.google.com by
thomas.b...@gmail.com
on 6 Dec 2012 at 2:37Attachments: