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

Sometimes As-You-Type validation isn't invoked after a Java-String that contains EL is Copy-Pasted in Java editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha2
    • 4.0.0.Alpha1
    • common
    • None

      1. Create the following class:

      package test;
      
      import javax.enterprise.inject.Produces;
      import javax.inject.Named;
      
      public class Bean_Broken {
      
      	public void foo() {
      		String s = "#{string.ss}";
      		String s2 = "#{string.ss}";
      	}
      
      	@Named
      	@Produces
      	public String string() {
      		return "";
      	}
      }
      

      2. Both ELs are marked as a problem
      3. Copy String s2 = "#

      {string.ss}";
      4. Delete it.
      5. Past String s2 = "#{string.ss}

      ";
      6. There is no validation problem on the second EL.
      7. Add " " to the second string: String s2 = "#

      {string.ss}

      ";
      8. The EL has a problem annotation now.

            alexeykazakov Alexey Kazakov
            vrubezhny Victor Rubezhny (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: