https://bz.apache.org/bugzilla/show_bug.cgi?id=63724

--- Comment #5 from Carlos Hager <guilherm...@gmail.com> ---
(In reply to Mark Thomas from comment #1)
> Please provide the simplest possible example (which is probably going to be
> a WAR file) - including source - that demonstrates this issue.

Hi Mark, thank for the quick reply. I have attached the source code of the
project (war had 4mb and was being blocked) and 2 prints while debugging.

On the method JspUtil().makeJavaPackage, the split method used to not
considerate the first "/" of the String. But the new refactor it does take this
situation in count, causing the make a java package with "..", how you can see
in the stacktrace.

Stacktrace:

An error occurred at line: [1] in the generated java file:
[/Users/carloshager/Library/Caches/IntelliJIdea2019.2/tomcat/Unnamed_error-example/work/Catalina/localhost/error_example/org/apache/jsp/tag/meta//WEB_002dINF/customTldResource_tld/main/jsPerformanceLog_tag.java]
The declared package "" does not match the expected package
"org.apache.jsp.tag.meta.WEB_002dINF.customTldResource_tld.main"

An error occurred at line: [9] in the generated java file:
[/Users/carloshager/Library/Caches/IntelliJIdea2019.2/tomcat/Unnamed_error-example/work/Catalina/localhost/error_example/org/apache/jsp/tag/meta//WEB_002dINF/customTldResource_tld/main/jsPerformanceLog_tag.java]
Syntax error on token ".", delete this token

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to