Improving Java's Lambda stream debugging
When Java introduced lambdas and streams as a native feature in Java 8, it was expected that there would be widespread adoption of this feature. However, that has not really been the case. One of the principal issues with lambdas in its current implementation is that when something goes wrong inside the stream, the stack trace message is very hard to understand and in many cases is considered to be quite useless. This raises the question as to whether we can change the Java Runtime Environment error messaging when it comes to failures in Java streams.
This project involves the following steps:
Phase one of this project will involve investigating the different ways in which languages with streams and lambdas actually expose run time errors.
In phase two, an evaluation (in the form of a controlled user study) will be performed with actual Java developers to see what error message format they find desirable.
Finally, in phase three, we will implement this in the Java Virtual Machine (JVM) and test its efficacy with real world users.
 Mazinanian, Davood, et al. “Understanding the use of lambda expressions in Java.” Proceedings of the ACM on Programming Languages (OOPSLA 2017)