Issue #331 added code assist for property name completion in map-style constructor invocation when the user starts to type the name of a property. However, the current implementation seems to correctly suggest results with a prefix-only guess, not with camel-case (which in Eclipse is usually found elsewhere in code assist, Groovy included).
Consider the slightly modified example:
package c
class MyBean {
String foo
void setBar(String bar) {
foo = bar.toUpperCase()
}
String thisIsAPropertyWithALongName
}
And:
package c
class ConstructorTest {
static main(args) {
MyBean b = new MyBean(tIAP|)
}
}
When you invoke code assist at "|", no suggestion is shown.
Please note that:
- if you do the same after
b instance has been created, to directly reference b.thisIsAPropertyWithALongName, camel-case completion works there (i.e.: b.tIAP| <= invoke code assist here)
- the case in which the property is defined by a setter only (like for
MyBean.bar property) should also be covered
Issue #331 added code assist for property name completion in map-style constructor invocation when the user starts to type the name of a property. However, the current implementation seems to correctly suggest results with a prefix-only guess, not with camel-case (which in Eclipse is usually found elsewhere in code assist, Groovy included).
Consider the slightly modified example:
And:
When you invoke code assist at "|", no suggestion is shown.
Please note that:
binstance has been created, to directly referenceb.thisIsAPropertyWithALongName, camel-case completion works there (i.e.:b.tIAP|<= invoke code assist here)MyBean.barproperty) should also be covered