Re:JDK 8 Release Notes
by benjiweber on Tuesday March 18, 2014 @04:15PM
(#7424684)
Here's that example of Property implementation
https://github.com/benjiman/expressions/blob/master/src/test...
https://github.com/benjiman/expressions/blob/master/src/main...
Properties you could simulate with lambdas now. something like Property<String> name = get(() -> name).set(name -> this.name = name);
You would lose all the existing framework support that assumes getters and setters doing that though.
Some of the generics failure will likely be fixed in 9 (Primitive specialisation). Other things are not as bad as some people think (At least generic supertype params are available at runtime)