error: 'throws' type-parameter not allowed here
Ali Ebrahimi
ali.ebrahimi1781 at gmail.com
Wed Jun 22 22:42:00 PDT 2011
Hi,
for line 2, i get this error: 'throws' type-parameter not allowed here
public interface MList<T> extends List<T> {
<throws E> void forEach(ExBlock<T,E> method) throws E default
Trait.<T,E>forEach;
static class Trait {
public static <T,throws E>
void forEach(
final MList<T> self, final ExBlock<T,E> method) throws E{
for (int i = 0; i < self.size(); i++) {
method.call(self.get(i));
}
}
}
}
public interface ExBlock<A1,throws E>{
void call(A1 a1) throws E;
}
Is this expected behavior or ...?
Ali Ebrahimi
More information about the lambda-dev
mailing list