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 166979 - Error message display for enum
Summary: Error message display for enum
Status: RESOLVED DUPLICATE of bug 189275
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 4 votes (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 12:16 UTC by yatgor
Modified: 2011-12-02 13:36 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 yatgor 2009-06-12 12:16:44 UTC
l have a groovy class - Account.groovy

package org.minioasis.gl

class Account {

    String code
    String name
    AccountType accountType
    SpecialAccountType specialAccountType
    Date created = new Date()
    Date updated
    Integer sublevel

    static belongsTo = [parent:Account]

    String toString(){
        return name
    }

    static mapping = {
        sort name : "asc"
    }

    static constraints = {
    	parent(nullable: true)
    	sublevel(range:0..10)
    	code(blank:false , size:2..20)
    	name(blank:false , size:2..45)
        accountType()
        specialAccountType()
    	created()
    	updated()
    }

}

enum AccountType {
       AP,AR
}

there is a message said that :

The class java.lang.Enum refers to the class java.lang.Enum and yses 1 parameters , but the refered class takes no 
parameters
@line -1 , column -1

what is wrong here , is that a bug ?
Comment 1 shayne 2010-03-09 13:22:55 UTC
I'm seeing this same problem continuing on Dev 201003040200
Comment 2 Martin Janicek 2011-12-02 13:36:03 UTC

*** This bug has been marked as a duplicate of bug 189275 ***