I'd have to dig a bit on this. There's a test for it in Solder, it should be working correctly.
Did you ever resolve this? I've just hit the same problem. @Exact really isn't a @Qualifier, as can been seen here...
...even though the JavaDoc says "An injection point qualifier that may be used to select the exact bean..."
Is this intentional? If it's not a @Qualifier, how is it intended to work?
Note that it did used to be a @Qualifier when Gavin originally wrote it...
Thanks Richard, but it's highly unlikely that bug (or really any from here on out) will be fixed in Seam 3. All work has moved over to DeltaSpike.
Okay cool. Is @Exact in DeltaSpike? This might be a perfect opportunity to rename/refactor it. Could you pass the bug over to the DeltaSpike JIRA?
I don't think we added it. Honestly, these seems like you could do the same with @Typed(Class)
Interesting. Could you explain how that works? I edited the Seam Solder example and tried:
@Inject @Typed(Greyhound.class) private Dog dog
But I still get:
WELD-001409 Ambiguous dependencies for type [Dog] with qualifiers [@Default] at injection point [[field] @Inject @Typed private org.jboss.solder.test.core.RaceTrack.dog]. Possible dependencies [[Managed Bean [class org.jboss.solder.test.core.BorderCollie] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.Greyhound] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.Dog] with qualifiers [@Any @Default @Named], Managed Bean [class org.jboss.solder.test.core.BetterGreyhound] with qualifiers [@Any @Default @Named]]]
so help me understand this. Seam 3 is going to be replaced in the near future with Delta spike and Delta spike from what i am reading and understand is going to have different features/api from Seam 3.
The past couple of months we have been looking to migrate out seam 2 projects to seam 3 and now this seems pointless since seam 3 is going away. It just seems that it makes sense to hold off on any upgrades until delta spike is matured. Am i understanding this correctly ?
what a mess!