Note on bugs in the Java compilation process

  • 2020-04-01 01:59:46
  • OfStack

Today, I found that the compilation failed after I updated the code submitted by the brothers in the group
The exception information is as follows:
The method getPOIByName(String) of type POISearchByGeoway must override a superclass method
I've seen this before, so I thought I'd write a blog about it to make it easier for anyone!
Ok solution is as follows:
1. Right-click project > Build Path> Configure Build Path > > JAVA Compiler  Compiler Compliance level& assignment; Change to 1.6 (the Override annotation does not appear until Java 1.6).

< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201305/2013051517571411.jpg ">

2, Windows> Preferences> Java> Complier modifier Compiler Compliance level& Compliance; Instead of 1.6.

  < img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201305/2013051517571412.jpg ">


Related articles: