<Sound Dev> Sound-related types that are candidates to be FunctionalInterfaces in JDK 8

Joe Darcy joe.darcy at oracle.com
Tue Feb 5 14:38:50 PST 2013


Hello,

As part of Project Lambda, a FunctionalInterface annotation type was 
added to the platform to mark interfaces that are intended to be used in 
lambda expressions.  I've sent out a code review request to add this 
annotation to types in the core-libs area [1].

To assist the sound team in adding analogous annotations to your types, 
the list of candidate types in for sound-related classes in java.* and 
javax.* is given below.  I recommend sub-tasks of JDK-8005297 "Add 
FunctionalInterface support to the platform" be used to track the work 
of adding @FunctionalInterface annotations to sound types.

Thanks,

-Joe

[1] 
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-February/014292.html

jdk/src/share/classes/javax/sound/midi/ControllerEventListener.java:46: 
Note: Candidate functional interface
public interface ControllerEventListener extends EventListener {
        ^
jdk/src/share/classes/javax/sound/midi/MetaEventListener.java:42: Note: 
Candidate functional interface
public interface MetaEventListener extends EventListener {
        ^
jdk/src/share/classes/javax/sound/sampled/LineListener.java:54: Note: 
Candidate functional interface
public interface LineListener extends java.util.EventListener {
        ^




More information about the sound-dev mailing list