[jbosstools-issues] [JBoss JIRA] (JBIDE-12418) Sometimes As-You-Type validation isn't invoked after a Java-String that contains EL is Copy-Pasted in Java editor

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Fri Aug 10 16:40:06 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-12418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Rubezhny updated JBIDE-12418:
------------------------------------

    Description: 
1. Create the following class:

{code}
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 "";
	}
}
{code}

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.


    
> Sometimes As-You-Type validation isn't invoked after a Java-String that contains EL is Copy-Pasted in Java editor
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-12418
>                 URL: https://issues.jboss.org/browse/JBIDE-12418
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common/jst/core
>    Affects Versions: 3.4.0.M1
>         Environment: Juno
>            Reporter: Victor Rubezhny
>            Assignee: Victor Rubezhny
>             Fix For: 3.4.0.M1
>
>
> 1. Create the following class:
> {code}
> 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 "";
> 	}
> }
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list