Upgrade Eclipse java compiler

后端 未结 7 2024
南笙
南笙 2021-02-20 17:32

I started using Ant, that ships with Eclipse. It annoys me, that I get hundreds of warnings in the lines of:

[javac] warning: java\\io\\BufferedInputStr

7条回答
  •  名媛妹妹
    2021-02-20 17:59

    Major version 51 is Java 7 - looks like you're developing against a preview Java 7 API library but compiling with a Java 6 javac. Either make sure ant uses the Java 7 compiler, or use a Java 6 API library to compile against.

提交回复
热议问题