thufir

Untitled

May 19th, 2020
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 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 858ms
  32. 1 actionable task: 1 executed
  33. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
  34. thufir@dur:~/NetBeansProjects/threadedExecTelnet$ java -version
  35. openjdk version "14.0.1" 2020-04-14
  36. OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
  37. OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
  38. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
  39. thufir@dur:~/NetBeansProjects/threadedExecTelnet$ javac -version
  40. javac 14.0.1
  41. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
  42. thufir@dur:~/NetBeansProjects/threadedExecTelnet$ gradle -version
  43.  
  44. ------------------------------------------------------------
  45. Gradle 6.4.1
  46. ------------------------------------------------------------
  47.  
  48. Build time: 2020-05-15 19:43:40 UTC
  49. Revision: 1a04183c502614b5c80e33d603074e0b4a2777c5
  50.  
  51. Kotlin: 1.3.71
  52. Groovy: 2.5.10
  53. Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
  54. JVM: 14.0.1 (AdoptOpenJDK 14.0.1+7)
  55. OS: Linux 5.4.0-29-generic amd64
  56.  
  57. thufir@dur:~/NetBeansProjects/threadedExecTelnet$
Advertisement
Add Comment
Please, Sign In to add comment