Using Eclipse for project development, adding @Override before a method in an implementation class indicates a “Multiple Markers at this line” error. The problem is described below
Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
plements. Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
-implements mgr.jc.student.service.IStudentBean.getStudentByID
Reason for this problem: JDK1.5 does not support this notation. Implementing interface methods requires overriding abstract methods.
The solutions to the above problems are as follows:
Method 1. Select Eclipse Window→Preferences→Java→Compiler and change the Compiler Compliance Level from 1.5 to above 1.6.
Right-click on Project and select the last Properties. Select the Java Compiler on the left, check the box inside, and change the Java Editor version to 1.6.
Method 3. Right-click the JRE System Library[javase-1.5]→Properties under Project, and select “javase-1.6 (jdk1.6.0_10)” and click OK.
All the above three methods can solve the problem mentioned in the question, you can choose the corresponding solution according to your own habits.
Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
plements. Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
-implements mgr.jc.student.service.IStudentBean.getStudentByID
Reason for this problem: JDK1.5 does not support this notation. Implementing interface methods requires overriding abstract methods.
The solutions to the above problems are as follows:
Method 1. Select Eclipse Window→Preferences→Java→Compiler and change the Compiler Compliance Level from 1.5 to above 1.6.
Right-click on Project and select the last Properties. Select the Java Compiler on the left, check the box inside, and change the Java Editor version to 1.6.
Method 3. Right-click the JRE System Library[javase-1.5]→Properties under Project, and select “javase-1.6 (jdk1.6.0_10)” and click OK.
All the above three methods can solve the problem mentioned in the question, you can choose the corresponding solution according to your own habits.
Read More:
- Error in Maven POM file: multiple annotations found at this line solution
- @Solution to override error
- Solution to error reporting in Java @ override
- Override the equals method and override the toString method
- The solution to the error of “no override found for * *” in the use of VTK
- ERROR 1046 (3D000) at line 22: No database selected
- Solution to the problem of multiple parameters when using pipeline under Linux
- MalformedJsonException:Use JsonReader.setLenient(true) to accept malformed JSON at line 3 colum
- Gson Parsing exceptions: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- Android Studio error “Manifest merger failed with multiple errors, see logs” solution
- “Method does not override method from its superclass”
- [ ERROR ] Error loading xmlfile: squeezenet1.1\FP16\squeezenet1.1.xml, File was not found at line: 1
- Error: no override found for ‘vtkPolyDataMapper’.
- Error: no override found for ‘vtkRayCastImageDisplayHelper’.
- Solution to unbalanced load of multiple cards (GPU’s 0 card is too high) in Python model training (simple and effective)
- Java 8 Stream – Read a file line by line
- Solution of command line window flashback when visual studio runs C + + program
- org.hibernate.MappingException: invalid override definition
- Three ways of single line and multi line comment in Python
- [PCL + QT + vs] no override found for ‘vtkrenderwindow’ error resolution