View | Details | Raw Unified | Return to bug 49892
Collapse All | Expand All

(-)java/org/apache/catalina/core/DefaultInstanceManager.java (-1 / +13 lines)
Lines 489-495 Link Here
489
            lookedupResource = context.lookup(name);
489
            lookedupResource = context.lookup(name);
490
        } else {
490
        } else {
491
            lookedupResource = context.lookup(
491
            lookedupResource = context.lookup(
492
                    clazz.getName() + "/" + method.getName().substring(3));
492
                    clazz.getName() + "/" + getName(method));
493
        }
493
        }
494
494
495
        accessibility = method.isAccessible();
495
        accessibility = method.isAccessible();
Lines 497-500 Link Here
497
        method.invoke(instance, lookedupResource);
497
        method.invoke(instance, lookedupResource);
498
        method.setAccessible(accessibility);
498
        method.setAccessible(accessibility);
499
    }
499
    }
500
501
        public static String getName(Method setter) {
502
            StringBuilder name = new StringBuilder(setter.getName());
503
504
            // remove 'set'
505
            name.delete(0, 3);
506
507
            // lowercase first char
508
            name.setCharAt(0, Character.toLowerCase(name.charAt(0)));
509
510
            return name.toString();
511
        }
500
}
512
}

Return to bug 49892