On 10/09/2014 11:55, Ivan Gerasimov wrote:

If a lambda were used instead of an anonymous class, it would save us one line of code :-)

I don't know if a lambda would help here but I think changing would require a lot of testing to make sure that there aren't any side effects. We've had a couple of cases where code using lambdas early in the startup has lead to recursive initialization issues (due to various code paths in the lambda meta factory code). In this case, the system and extensions class loaders are URLClassLoader so this code is likely to be executed early. So if the intention is to push this to jdk8u-dev (which I think it is) then we would just need to make sure that it is well tested.

-Alan.

Reply via email to