Hi all, I’m currently working on enhancing a Beam test suite to check compatibility with Java 11 UDFs. As JDK11 introduces several useful features, I wanted to turn to the Devlist to gather your opinions on which features should be included in the DoFn.
To give you an idea of how the test will be designed, I’m planning to create a test pipeline with a custom DoFn which will use JDK11 specific features. This test will be compiled with JDK11 and ran using a binary of Beam built with JDK8 in order to simulate a situation in which the user downloads the Beam from Maven repository and uses it in their project built in Java 11. The features I believe are worth checking are: - String manipulation methods: - .repeat - stripTrailing, stripLeading and strip() - isBlank - Lines - RegEx asMatchPredicate - Local parameter type inference in lambda expressions - Optional::isEmpty - Collection::toArray - Path API change - Path::of I don’t think that checking other new features in Java 11 such as flight recording or new HTTP client which we probably won’t use in Beam is justified, but I’m open to suggestions and discussion. Which of those new features should be included in the DoFn applied in the test? I will be grateful for any input. Have a good day Michal -- Michał Walenia Polidea <https://www.polidea.com/> | Software Engineer M: +48 791 432 002 <+48791432002> E: michal.wale...@polidea.com We create human & business stories through technology. Check out our projects! <https://www.polidea.com/our-work>