This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When editing code like this def eng = new GroovyScriptEngine() eng.getConfig(). the code completion works great after eng and the period (correctly implying that eng is class GroovyScriptEngine). It should also continue to work after .getConfig(), a method that clearly results in a CompilerConfiguration object, but it never does in any method chains. That's also the case for Groovy intrisic stuff, e.g. a simple chain like def xy = "foobar" xy.padLeft(12). --> again to code completion This is so substantially annoying, I'll file it as DEFECT, not ENHANCEMENT
Hi, thanks for the report. This is a type interference problem (duplicate of the issue 152778). I'm aware of this and will try to fix it as soon as possible, but don't want to promise anything
*** Bug 228764 has been marked as a duplicate of this bug. ***
First sketch of the possible solution done in: web-main #2553ab6b0c22 The code completion works on method chain but only in cases when the "base" variable is directly declared (statically typed). I need to spend more time on this to get it working also for dynamic variables.
*** This bug has been marked as a duplicate of bug 152778 ***