Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glassfishrobot opened this issue Jan 16, 2012 · 4 comments

Comments

@glassfishrobot
Copy link

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.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by yantan

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JSP-24

@glassfishrobot
Copy link
Author

@markt-asf
Copy link

This bug was present in the upstream Apache Tomcat JSP engine (Jasper) but had not been reported upstream. The bug has now been fixed in Tomcat.

@markt-asf markt-asf transferred this issue from jakartaee/pages Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants