Issue 242: trunk: @Inject @Named trunk: @Inject @Named error
http://code.google.com/p/google-guice/issues/detail?id=242

New issue report by jkriesten:
Hi,

the following construct (original code is Scala)

---8<---
@Inject @Named( "QUARTZ_FACTORY_KEY" )
private final String QUARTZ_FACTORY_KEY;

public String QUARTZ_FACTORY_KEY() { return QUARTZ_FACTORY_KEY; }
---8<---

gives the following error with latest trunk (r615):

de.footprint.utils.scheduler.SchedulerProvider.QUARTZ_FACTORY_KEY() is
annotated with @com.google.inject.name.Named(value=QUARTZ_FACTORY_KEY), but
binding annotations should be applied to its parameters instead.

It seems that Guice now gets irritated when fields and methods of the same
name are available. It works with earlier Guice versions, though! Has there
changed something in the verifier?

Best regards, --- Jan.


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to