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 - Missing/wrong dymaic methods in autocomplete on domain class with relations
Summary: Missing/wrong dymaic methods in autocomplete on domain class with relations
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-13 08:10 UTC by cyhex
Modified: 2013-08-13 08:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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