Comment.jsp does not compile ( Preferences.getDateFormat signature changed )
----------------------------------------------------------------------------
Key: JSPWIKI-292
URL: https://issues.apache.org/jira/browse/JSPWIKI-292
Project: JSPWiki
Issue Type: Bug
Components: Core & storage
Affects Versions: 2.7.x
Environment: NA
Reporter: Harry Metske
Attachments: JSPWIKI-292.patch
The Comment.jsp does not compile :
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 182 in the jsp file: /Comment.jsp
The method getDateFormat(WikiContext, Preferences.TimeFormat) in the type
Preferences is not applicable for the arguments (WikiContext)
179: }
180:
181: Calendar cal = Calendar.getInstance();
182: SimpleDateFormat fmt = Preferences.getDateFormat( wikiContext
);
183:
184: pageText.append("\n\n--"+signature+",
"+fmt.format(cal.getTime()));
185:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:316)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:166)
com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:92)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.