On 21 Sep 2015, at 18:11, Peter Levart <peter.lev...@gmail.com> wrote: >> I would be happy to sacrifice the use-case in AbstractStringBuilder for >> using BiFunction<Integer, Integer, RuntimeException>, and add appropriate >> constructors or factory methods on the common exception types for method ref >> usage. >> >> Paul. > > Don't forget that AbstractStringBuilder is used in String concatenation which > might be used very early in the life of VM and that lambdas need > invokedynamic which initializes java.lang.invoke infrastructure which doesn't > work currently if it happens before System class loader is initialized... > (same chicken-egg issues as with string concatenation JEP by Alexey Shipilev > - they can be solved though, but it would be easier to not need lambdas if > possible. They don't make code look any nicer in these cases anyway). >
It’s very much on my mind :-) in some cases we cannot use lambdas/method refs. Paul.