java.lang.RuntimeException: Uncompilable source code - incompatible types: try-with-resources not applicable to variable type (BoardGameTester.BufferedReader cannot be converted to java.lang.AutoCloseable)

Coderanch | Danny Broadwater | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    board game tester error

    Coderanch | 4 years ago | Danny Broadwater
    java.lang.RuntimeException: Uncompilable source code - incompatible types: try-with-resources not applicable to variable type (BoardGameTester.BufferedReader cannot be converted to java.lang.AutoCloseable)

    Root Cause Analysis

    1. java.lang.RuntimeException

      Uncompilable source code - incompatible types: try-with-resources not applicable to variable type (BoardGameTester.BufferedReader cannot be converted to java.lang.AutoCloseable)

      at BoardGameTester.main()
    2. Unknown
      BoardGameTester.main
      1. BoardGameTester.main(BoardGameTester.java:58)
      1 frame