Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-7988

CDI tools model is not updated after quick fix.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 3.2.0.CR1
    • 3.2.0.Beta2
    • cdi
    • None

    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.

      Attachments

        Activity

          People

            dazarov_jira Daniel Azarov (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: