On 5/23/2018 11:29 PM, Doug Breaux wrote:
> Looks the same:
> 
> java TestForStruts
> COPY ME 1: public abstract int java.util.Set.size()
> COPY ME 2: 0

Thanks. Sorry, for last one, could you check:

        java.util.Map lhm = new java.util.LinkedHashMap<>();
        Class<?> c = lhm.getClass();
        java.lang.reflect.Method m = c.getMethod("keySet");
        Object ks = m.invoke(lhm);
        Class<?> c2 = ks.getClass();
        java.lang.reflect.Method m2 = c2.getMethod("size");
        System.out.println("COPY ME 1: " + m2);
        Object s = m2.invoke(ks);
        System.out.println("COPY ME 2: " + s);

and if were successful, then check in your action method if:

        java.util.Map lhm = this.getFieldErrors()
        Class<?> c = lhm.getClass();
        java.lang.reflect.Method m = c.getMethod("keySet");
        Object ks = m.invoke(lhm);
        Class<?> c2 = ks.getClass();
        java.lang.reflect.Method m2 = c2.getMethod("size");
        System.out.println("COPY ME 1: " + m2);
        Object s = m2.invoke(ks);
        System.out.println("COPY ME 2: " + s);

is also successful.

Reply via email to