i closed it as wont-fix. if it already works that way, fine :) -igor
On Wed, Jun 8, 2011 at 8:27 AM, Andrea Del Bene <[email protected]> wrote: > Hi, > > while I was working on WICKET-3689 (" @SpringBean: support 'required' ") I > found that issue 2495 (" @SpringBean should use field name for default bean > name ") is still open. > The patch of this issue was never committed to source trunk and currently if > we don't specify a bean name SpringBean searches for a bean of the same > type: > > private String getBeanName(final Field field) > { > SpringBean annot = field.getAnnotation(SpringBean.class); > > String name = annot.name(); > if (Strings.isEmpty(name)) > { > name = beanNameCache.get(field.getType()); > if (name == null) > { > name = getBeanNameOfClass(contextLocator.getSpringContext(), > field.getType()); > beanNameCache.put(field.getType(), name); > } > } > return name; > } > > > So did WICKET-2495 became obsolete or does it still be valid? >
