Author: scabanovich
Date: 2009-12-11 08:02:38 -0500 (Fri, 11 Dec 2009)
New Revision: 19203
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5442
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2009-12-11
12:40:14 UTC (rev 19202)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2009-12-11
13:02:38 UTC (rev 19203)
@@ -85,8 +85,14 @@
}
ELInstanceImpl instance = new ELInstanceImpl();
instance.setFirstToken(current);
- setNextToken();
- ELExpressionImpl expression = readExpression();
+ ELExpressionImpl expression = null;
+// setNextToken();
+ if(lookUpNextToken(current) != null) {
+ setNextToken();
+ expression = readExpression();
+ } else {
+ current = current.getNextToken();
+ }
if(expression == null) {
//create fake invocation expression
expression = new ELPropertyInvocationImpl();