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 | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    board game tester error

    Coderanch | 3 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