Summary: | compile taglibs that are not (yet) included in jsp file | ||
---|---|---|---|
Product: | Tomcat 10 | Reporter: | andreas.stange |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | dan |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | ------ | ||
Hardware: | PC | ||
OS: | All |
Description
andreas.stange
2022-08-01 10:02:35 UTC
> The prematurely used Java files are not present. Thus no error.
Should be "The prematurely used Java files are NOW present. Thus no error."
Moving this to an enhancement. Given that the compilation of the tag files is simply a means to an ends (dependency management) I wonder if there is a simpler solution. > Given that the compilation of the tag files is simply a means to an ends
> (dependency management) I wonder if there is a simpler solution.
We could write a test that scans our tag files to check that no import of a prematurely used class exists.
However, the JSP compiler has info what is on the classpath, transitive dependencies etc. Thus, I argue that compilation would be the better solution.
When not compiling tag files, errors will always be delayed to later projects. For example, unsupported Java language features (depends on language level configuration) or syntax errors. But yes, this is a minor issue because the error will show up eventually.
|