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

Wrong quick fix for empty tag <class> in beans.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.Beta1
    • cdi
    • None

      Test case:

      Execute:
      1. Create CDI project
      2. Create beans.xml

      <?xml version="1.0"?>
      <beans xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
          <alternatives>
              <class&gt;			</class&gt;
          </alternatives>
      </beans>
      

      3. Save file

      ASSERT: There is a problem marker "There is no class with the specified name [JSR-299 ยง5.1.1]" for tag <class> </class>

      EXECUTE: Point mouse to marked text then hold
      ASSERT: There should be no Quick Fix "Create CDI Bean Class" for such cases

            dazarov_jira Daniel Azarov (Inactive)
            dazarov_jira Daniel Azarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: