[
https://issues.jboss.org/browse/JBIDE-12405?page=com.atlassian.jira.plugi...
]
Alexey Kazakov edited comment on JBIDE-12405 at 8/9/12 6:57 PM:
----------------------------------------------------------------
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.
was (Author: akazakov):
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}
3. Both ELs are marked as a problem
4. Copy String s2 = "#{string.ss}";
5. Delete it.
6. Past String s2 = "#{string.ss}";
7. There is no validation problem on the second EL.
8. Add " " to the second string: String s2 = "#{string.ss} ";
9. The EL has a problem annotation now.
As-you-type validation works slow when many strings are being added
-------------------------------------------------------------------
Key: JBIDE-12405
URL:
https://issues.jboss.org/browse/JBIDE-12405
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.4.0.M1
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Priority: Blocker
Fix For: 3.4.0.M1
1. Create a cdi bean class.
2. Add the following lines to any method of the class:
{code}
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
System.out.println("#{test.bytess} sf sdf " + "" + "" +
"");
{code}
3. Repeat #2 a ten times.
4. There are 0.5n(n+1) as-you-type validation thread created, where n is a nubmer of
srings of the file.
So if you copied a hundred strings you will have 5050 threads.
--
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