You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/06/03 20:04:40 UTC

[tomcat] branch 8.5.x updated: Correctly handle inner classes (and fix failing test)

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 0c6247b  Correctly handle inner classes (and fix failing test)
0c6247b is described below

commit 0c6247b6bd1fe91b820f9420433f29b22ef8bd07
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Feb 17 16:41:05 2020 +0000

    Correctly handle inner classes (and fix failing test)
---
 test/javax/el/TestImportHandlerStandardPackages.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/javax/el/TestImportHandlerStandardPackages.java b/test/javax/el/TestImportHandlerStandardPackages.java
index 30b0886..2f40de8 100644
--- a/test/javax/el/TestImportHandlerStandardPackages.java
+++ b/test/javax/el/TestImportHandlerStandardPackages.java
@@ -132,7 +132,7 @@ public class TestImportHandlerStandardPackages {
                         // Skip directories
                         continue;
                     }
-                    Class<?> clazz = Class.forName(packageName + "." + name);
+                    Class<?> clazz = Class.forName(packageName + "." + name.replaceAll("\\.", "\\$"));
                     if (!Modifier.isPublic(clazz.getModifiers())) {
                         // Skip non-public classes
                         continue;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org