... is not sufficient to choose the “best” task support library available.
Example case is Avian where, despite the existence of ForkJoin, ThreadPools are used.
One approach could be to check for scala.util.Properties.isJavaAtLeast("1.7")) and enable ForkJoin without further vendor checks, because one can reasonably expect that if a platform declares Java 7 support it actually does.
The text was updated successfully, but these errors were encountered:
Additionally, it would make sense to add some check to the detection code for a command line argument so that the task support choice can be overridden and therefore all code paths can be tested.
One example of issues caused by not being able to test this code is #7236.
Well, if we could figure out why the vendor checks where added in the first place (digging in the history brought up some issue related to IBM's VM, but no actual tests) we could probably simplify the whole decision mechanism a lot.