eclipse-ee4j / eclipse-ee4j/wasp

counter-intuitive white space handling of function-signature when defining custom functions.

Open
#18 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I am using org.apache.jasper.jspC from glassfish.jar version: 2.2.2_v201108011116

When defining custom functions in *.tld. The white space handling by JspC compiler is not intuitive. See the example below.

java.lang.String
getName()

There must be a white space character immediately after return type ('java.lang.String' in this case), even if the rest of the signature definition is on a separate line. a new line character or a tab following the return type will cause an error.

What's more when this happens, the JspC simply output an error of invalid signature without mentioning which line or which function's signature is invalid. This make debugging very difficult as white spaces, tabs, new line characters are not often invisible.
#### Environment
Linux, Ubuntu-10, Jetty application server.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.