Description
1. Create the following class in CDI-enabled project:
class Goose_Broken {
@Inject
public Goose_Broken(String foo) {}
@Inject
public Goose_Broken(String foo, Double bar) {}
}
2. Build the project. There is two error markers on the injections because a bean can have only one constructor annotated @Inject.
3. Double click on any error marker. Select "Delete @Inject annotation from all the constructors but....". Press finish.
4. Now there is the only one @Inject in the class but error markers didn't disappear. It's a problem of CDI model. It still has two @Inject methods. Try to modify the file and Ctrl+S. It helps to get rid of the markers.