JDK 8 code review request for 8005298 Add FunctionalInterface type to the core libraries (original) (raw)
Joe Darcy joe.darcy at oracle.com
Wed Jan 16 06:54:17 UTC 2013
- Previous message: JDK 8 code review request for 8005298 Add FunctionalInterface type to the core libraries
- Next message: JDK 8 code review request for 8005298 Add FunctionalInterface type to the core libraries
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Florian,
On 1/10/2013 1:23 AM, Florian Weimer wrote:
On 01/08/2013 10:24 PM, Joe Darcy wrote:
As discussed over on one of the Project Lambda lists [1], we're adding an interface type to the platform to explicitly mark interface types as being functional interfaces suitable for use in lambda expressions. Please review the addition of this new type:
http://cr.openjdk.java.net/~darcy/8005298.0/ Shouldn't this annotation have @Retention(RetentionPolicy.SOURCE), similar to the @Override annotation?
No; we intentionally made this annotation have runtime retention to allow it to also be queried to various tools at runtime, etc.
Cheers,
-Joe
- Previous message: JDK 8 code review request for 8005298 Add FunctionalInterface type to the core libraries
- Next message: JDK 8 code review request for 8005298 Add FunctionalInterface type to the core libraries
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]