thufir

Untitled

May 19th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1.  
  2. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
  3. thufir@dur:~/NetBeansProjects/threadedExecTelnet$ gradle build
  4.  
  5. > Task :compileJava FAILED
  6. /home/thufir/NetBeansProjects/threadedExecTelnet/src/main/java/net/bounceme/dur/mud/CommandMaker.java:22: error: cannot find symbol
  7. Set<String> stringSet = objectSet.stream().map(o -> convertToString(o)).collect(Collectors.toSet());
  8. ^
  9. symbol: method convertToString(Object)
  10. location: class CommandMaker
  11. /home/thufir/NetBeansProjects/threadedExecTelnet/src/main/java/net/bounceme/dur/mud/CommandMaker.java:22: error: incompatible types: inference variable T has incompatible bounds
  12. Set<String> stringSet = objectSet.stream().map(o -> convertToString(o)).collect(Collectors.toSet());
  13. ^
  14. equality constraints: String
  15. lower bounds: Object
  16. where T is a type-variable:
  17. T extends Object declared in method <T>toSet()
  18. 2 errors
  19.  
  20. FAILURE: Build failed with an exception.
  21.  
  22. * What went wrong:
  23. Execution failed for task ':compileJava'.
  24. > Compilation failed; see the compiler error output for details.
  25.  
  26. * Try:
  27. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  28.  
  29. * Get more help at https://help.gradle.org
  30.  
  31. BUILD FAILED in 919ms
  32. 1 actionable task: 1 executed
  33. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
Advertisement
Add Comment
Please, Sign In to add comment