开发者

RAD (eclipse Based) shows a compiler error even after solving it

开发者 https://www.devze.com 2023-04-09 05:07 出处:网络
开发者_StackOverflow中文版I am working on a J2EE web application. The servlet I am modifying had a method in it that took two parameters. I added a third parameter to the method and adjusted the metho
开发者_StackOverflow中文版

I am working on a J2EE web application. The servlet I am modifying had a method in it that took two parameters. I added a third parameter to the method and adjusted the method calls accordingly. As each call was adjusted the red markings indicating an error disappeared. All except one. The red markings would not disappear and when they did finally disappear after changing the parameter types, the error won't disappear in my problems view. When trying to call the servlet from the browser the error prevents proper running.

The error in the problems view says: "The method writeHeader(PrintWriter, String, boolean) in the type ExportPro__Servlet is not applicable for the arguments (PrintWriter, String)

This what the call to the method is: writeHeader(out, status, booleanVariable);

This is the method header: public void writeHeader(PrintWriter out, String status, boolean bV)

When I ctrl+click on the call it takes me to the method, so we know its calling the write method. There are no other similar methods in the class.

Thank you

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号