Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2493

ClassUtil.newInstance() may cause stack overflow exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.4
    • 7.0.3
    • Databind 2
    • Security Level: Jimmy

      Somehow this API is a recursive call that may cause stack overflow exception.

      public class ClassUtil {
      
          public static final Object newInstance(Class<?> cls, Object[] args)
              throws NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
              return newInstance(cls, args);
          }
      }
      

            ChunfuChang ChunfuChang
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: