ClassUtil.newInstance() may cause stack overflow exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 7.0.4
    • Affects Version/s: 7.0.3
    • Component/s: Databind 2
    • Security Level: Jimmy
    • None

      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);
          }
      }
      

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

              Created:
              Updated:
              Resolved: