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 218146

Summary: [cc] Support for Mixin transformation
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
URL: http://groovy.codehaus.org/Category+and+Mixin+transformations
Issue Type: ENHANCEMENT Exception Reporter:

Description Martin Janicek 2012-09-11 14:46:48 UTC
Create new groovy class:

package whatever

class Person {
    def first
    def last
}
class PersonMixin {
    def getFullName() {
        "${first} ${last}"
    }
}

Person.mixin PersonMixin
 
def person = new Person(first:'Hugh',last:'Jackman')
 
assert 'Hugh' == person.first
assert 'Jackman' == person.last
assert 'Hugh Jackman' == person.^


..when using code completion on the ^ location, it doesn't show getFullName which is added to the Person class through the mixin.