Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$ gradle build
- > Task :compileJava FAILED
- /home/thufir/NetBeansProjects/threadedExecTelnet/src/main/java/net/bounceme/dur/mud/CommandMaker.java:22: error: cannot find symbol
- Set<String> stringSet = objectSet.stream().map(o -> convertToString(o)).collect(Collectors.toSet());
- ^
- symbol: method convertToString(Object)
- location: class CommandMaker
- /home/thufir/NetBeansProjects/threadedExecTelnet/src/main/java/net/bounceme/dur/mud/CommandMaker.java:22: error: incompatible types: inference variable T has incompatible bounds
- Set<String> stringSet = objectSet.stream().map(o -> convertToString(o)).collect(Collectors.toSet());
- ^
- equality constraints: String
- lower bounds: Object
- where T is a type-variable:
- T extends Object declared in method <T>toSet()
- 2 errors
- FAILURE: Build failed with an exception.
- * What went wrong:
- Execution failed for task ':compileJava'.
- > Compilation failed; see the compiler error output for details.
- * Try:
- 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.
- * Get more help at https://help.gradle.org
- BUILD FAILED in 858ms
- 1 actionable task: 1 executed
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$ java -version
- openjdk version "14.0.1" 2020-04-14
- OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
- OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$ javac -version
- javac 14.0.1
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$ gradle -version
- ------------------------------------------------------------
- Gradle 6.4.1
- ------------------------------------------------------------
- Build time: 2020-05-15 19:43:40 UTC
- Revision: 1a04183c502614b5c80e33d603074e0b4a2777c5
- Kotlin: 1.3.71
- Groovy: 2.5.10
- Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
- JVM: 14.0.1 (AdoptOpenJDK 14.0.1+7)
- OS: Linux 5.4.0-29-generic amd64
- thufir@dur:~/NetBeansProjects/threadedExecTelnet$
Advertisement
Add Comment
Please, Sign In to add comment