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

--- Comment #4 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to Mark Thomas from comment #2)
> Created attachment 35975 [details]
> Patch for potential optimisation

> standardPackages.put("javax.jsp.servlet", servletJspClassNames);

A typo. The package name should be "javax.servlet.jsp".

> // Standard package where we know all the class names

New classes can be added to java.lang in future versions of Java. I see from a
comment that you worked from Java 11 EA javadoc,  but it is still fragile.

(I wonder if it is possible to do a consistency check programmatically -
similar to OpenSSL cipher suite tests that we have.  The crucial thing is to
get a list of classes in a package. I do not see API for this besides
ClassLoader.getResources(). The java.lang.Package class does not have a method
to get a list of classes contained in that package.)

-- 
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