Advertisement
Guest User

Untitled

a guest
May 21st, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. $ javac Experiment.java
  2. Experiment.java:30: error: method copyRow in class Experiment cannot be applied to given types;
  3. copyRow(wr.row); // Error
  4. ^
  5. required: R
  6. found: CAP#1
  7. reason: inference variable R has incompatible bounds
  8. equality constraints: CAP#1
  9. lower bounds: Row<CAP#1,CAP#2>
  10. where R,K are type-variables:
  11. R extends Row<R,K> declared in method <R,K>copyRow(R)
  12. K extends Key<K> declared in method <R,K>copyRow(R)
  13. where CAP#1,CAP#2 are fresh type-variables:
  14. CAP#1 extends Row<CAP#1,CAP#2> from capture of ?
  15. CAP#2 extends Key<CAP#2> from capture of ?
  16. Experiment.java:31: error: method copyRow in class Experiment cannot be applied to given types;
  17. copyRow(upcast(wr.row)); // Error
  18. ^
  19. required: R#1
  20. found: R#2
  21. reason: inferred type does not conform to upper bound(s)
  22. inferred: K#3
  23. upper bound(s): Key<K#3>,Key<K#4>
  24. where R#1,K#1,R#2,K#2,K#3,K#4 are type-variables:
  25. R#1 extends Row<R#1,K#1> declared in method <R#1,K#1>copyRow(R#1)
  26. K#1 extends Key<K#1> declared in method <R#1,K#1>copyRow(R#1)
  27. R#2 extends Row<R#2,K#2>
  28. K#2 extends Key<K#2>
  29. K#3 extends Key<K#4>
  30. K#4 extends Key<K#3>
  31. 2 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement