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

Errors in CDICoreValidator when editing Java during validation of previous saved state.

XMLWordPrintable

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

      Now Java Model updates on the fly at source editing, whereas CDI validator works with CDI model built with the last saved state. That means that some objects of Java model stored in CDI model may get obsolete while validation is in progress.
      One of possible cases:

      EXECUTE: Add producer to a bean

      @Produces
      String getName(String s) {
          return null;
      }
      

      EXECUTE: Select and delete argument 'String s'.
      EXECUTE: Use Ctrl+Z Ctrl+S Ctrl+Y Ctrl+S several times.
      FAILURE: Java Model Exception 'getName(String) ... does not exist'.

      Proposed fix. As we will keep to updating CDI model during build of last saved state, CDI model objects need to be able to answer if they exist or not, and validator and other clients should check existence before accessing the object.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: