Community
Participate
Working Groups
Build Identifier: M20110210-1200 Content assist will not show any proposal when the prefix ends with a period ('.'). Reproducible: Always Steps to Reproduce: 1. Create following Xtend2 class: package test class X { def func() { var aa = new java.util.| // pipe (|) is where CA is activated. } } 2. Activate content assist as indicated above.
The parser performs some strange error recovery for the given scenario. One could introduce something like this: QualifiedNameWithDot: QualifiedName '.'? ; and use that one here XConstructorCall returns XExpression: {XConstructorCall} 'new' constructor=[types::JvmConstructor|QualifiedNameWithDot] .. ; and in the XAnnotation rule. However, additional validation would be necessary to catch errors like new java.util.ArrayList.(5) and the fix cannot be easily applied to def java.util.|<EOF> or def String foobar(java.util.|<EOF> I'll investigate further in the error recovery issue
not 2.1