You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by GitBox <gi...@apache.org> on 2020/08/19 00:41:45 UTC

[GitHub] [shiro] ddddyyyy commented on a change in pull request #248: [SHIRO-767] Fixed issue where ClassUtil cannot load the array of Primitive DataType...

ddddyyyy commented on a change in pull request #248:
URL: https://github.com/apache/shiro/pull/248#discussion_r472569626



##########
File path: lang/src/main/java/org/apache/shiro/lang/util/ClassUtils.java
##########
@@ -252,7 +274,7 @@ public Class loadClass(String fqcn) {
             ClassLoader cl = getClassLoader();
             if (cl != null) {
                 try {
-                    clazz = cl.loadClass(fqcn);
+                    clazz = Class.forName(fqcn,false,cl);

Review comment:
       > Would you please add the whitespace? Then the code would be consistent again (whitespace after parameter comma). Thanks!
   
   OK.I have added whitespace in the latest commit.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org