Author: scabanovich
Date: 2008-11-07 05:59:37 -0500 (Fri, 07 Nov 2008)
New Revision: 11607
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java
Log:
JBIDE-3132
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java 2008-11-07
08:25:49 UTC (rev 11606)
+++
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java 2008-11-07
10:59:37 UTC (rev 11607)
@@ -13,6 +13,7 @@
import java.util.List;
import java.util.Random;
+import org.jboss.tools.common.el.core.model.ELInstance;
import org.jboss.tools.common.el.core.model.ELModel;
import org.jboss.tools.common.el.core.parser.ELParser;
import org.jboss.tools.common.el.core.parser.ELParserFactory;
@@ -59,6 +60,18 @@
checkCorrectEL(t, "#{a.b(7 + 8) * (4 / 2 - 1)/c.d}");
}
+ /**
+ * JBIDE-3132 An OutOfMemory exception is thrown by Code assist for "#{messages[
"
+ */
+ public void testJBIDE3132() {
+ ELParser parser = ELParserUtil.getJbossFactory().createParser();
+ String el = "#{messages[";
+ ELModel model = parser.parse(el);
+ List<ELInstance> is = model.getInstances();
+ assertEquals(1, is.size());
+ assertEquals(el, is.get(0).getText());
+ }
+
public void testElEmptyOperator() {
Tokenizer t = TokenizerFactory.createJbossTokenizer();
checkCorrectEL(t, "#{empty a}");
Show replies by date