[Demonstration 1]

[Buggy Method]
@Override
public void onConnectionError(ConnectionException e) {
    logger.error("An error occured with the connection: " + e.getMessage());
    //TODO: Recovery procedure.
}

[Buggy Hunk]
logger.error("An error occured with the connection: " + e.getMessage());

[Patch]
logger.error("An error occured with the connection: " + e.connection.id + " on thread " + e.connectionThreadType);

[Demonstration 2]

[Buggy Method]
public void start() {
    ServletContextHandler contextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);
    contextHandler.setContextPath("/");
    contextHandler.addEventListener(new ServletContextListener() {

        @Override
        public void contextInitialized(ServletContextEvent sce) {
            ServletContext servletContext = sce.getServletContext();
            servletContext.addServlet("newcomer", new NewcomerServlet()).addMapping("/*");
        }

        @Override
        public void contextDestroyed(ServletContextEvent sce) {
        }
    });
    server.setHandler(contextHandler);
    try {
        server.start();
        server.join();
    } catch (Exception e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
servletContext.addServlet("newcomer", new NewcomerServlet()).addMapping("/*");

[Patch]
servletContext.addServlet("newcomer", new NewcomerServlet()).addMapping("/index.html","/newcomer.html");

[Demonstration 3]

[Buggy Method]
@Override
public void showHttpError(int code) {
    WebService.handlerRequestError(getApplicationContext(), code);
}

[Buggy Hunk]
WebService.handlerRequestError(getApplicationContext(), code);

[Patch]
WebService.handlerRequestError(this, code);