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 - [cc] Support for Mixin transformation
Summary: [cc] Support for Mixin transformation
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
Depends on:
Reported: 2012-09-11 14:46 UTC by Martin Janicek
Modified: 2013-03-26 12:22 UTC (History)
0 users

See Also:
Exception Reporter:


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