开发者

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

开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜