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.

Bug 234304

Summary: Missing/wrong dymaic methods in autocomplete on domain class with relations
Product: groovy Reporter: cyhex
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description cyhex 2013-08-13 08:10:09 UTC
In Domain class with manyToOne relations the autocomplete seems to be a bit random, suggests methods that should not be available and do not suggest methods that should be there.  

To recreate
Create 2 domain classes:

class Book {
    String name
    Author author
    static belongsTo = [autor: Author]
}

class Author {
    String name
    List books
    static hasMany = [books: Book]
}

Author a = new Author()

a.books.
or
a.getBooks().

Here one would expect methods from Groovy List Object
http://groovy.codehaus.org/groovy-jdk/java/util/List.html

as well as DefaultGroovyMethods


Possible overlap with bug: https://netbeans.org/bugzilla/show_bug.cgi?id=234248