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

"Add java.io.Serializable interface to '<Bean>' class" quick fix works wrong if Bean class extends another class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • 3.3.0.M1
    • cdi
    • None

      EXECUTE: Create any CDI project.
      EXECUTE: Create:

      package org.test;
      
      public class FirstBean {
      
      }
      
      package org.test;
      
      import javax.enterprise.context.SessionScoped;
      
      @SessionScoped
      public class SecondBean extends FirstBean {
      
      }
      

      EXECUTE: Build the project
      ASSERT: "SecondBean" name in SecondBean.java class marked with "Managed bean SecondBean which declares a passivating scope SessionScoped must be passivation capable [JSR-299 ยง6.6.4]" warning problem marker with "Add java.io.Serializable interface to 'SecondBean' class"
      EXECUTE: Select quick fix link
      FAIL: Quick fix inserted 'implements Serializable' before 'extends FirstBean' and it couse compilation problem

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

              Created:
              Updated:
              Resolved: