fork(2) download
  1. import java.lang.*;
  2. class Test {
  3. public static class FilterResult {}
  4. public static class WrappedFilterResult<T, FR extends FilterResult> extends FilterResult {}
  5. public interface ACComparator<FR extends FilterResult> {}
  6.  
  7. public static <FR extends FilterResult, T>
  8. void filter1(ACComparator<? super WrappedFilterResult<? super T, ? super FR>> comparator) {
  9. // both compile fine with normal Java compiler
  10. // but error with Eclipse JDT compiler (I'm using Eclipse 4.9.0)
  11. filter1(comparator);
  12. filter2(comparator);
  13. }
  14.  
  15. public static <FR extends FilterResult, T>
  16. void filter2(ACComparator<? super WrappedFilterResult<? super T, ? super FR>> comparator) {
  17. // implementaion...
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
spoj: The program compiled successfully, but main class was not found.
      Main class should contain method: public static void main (String[] args).
stdout
Standard output is empty