vlsi commented on a change in pull request #1042: Avoid use of new
RuntimeException(e) in tests
URL: https://github.com/apache/calcite/pull/1042#discussion_r256851757
##########
File path:
core/src/test/java/org/apache/calcite/sql/test/SqlOperatorBaseTest.java
##########
@@ -8153,7 +8154,7 @@ public TesterImpl(SqlTestFactory testFactory) {
} catch (RuntimeException e) {
throw e;
Review comment:
>I usually prefer to throw Exception from test methods/classes
Just to clarify: you can't `throw Exception` from a lambda. This change is
mostly to unlock that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services