Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b82
-
Verified
Description
This program
import java.util.*;
interface SAM {
Object m();
}
class Test {
SAM s = SAM::new;
}
Gives:
Test.java:8: error: {0} is abstract; cannot be instantiated
SAM s = SAM::new;
^
1 error
Error message should be improved.
import java.util.*;
interface SAM {
Object m();
}
class Test {
SAM s = SAM::new;
}
Gives:
Test.java:8: error: {0} is abstract; cannot be instantiated
SAM s = SAM::new;
^
1 error
Error message should be improved.