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.
Product Version: NetBeans IDE Dev (Build 20080313055741) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-120 System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb) Introduce filed/method produces invalid code when called in annotation type. Steps to reproduce: 1) have code: public @interface NewAnnotationType { double x() default 2.2; } 2) select 2.2 3) use introduce method/field hint (introduce constant is ok)
reproducible, check for annotation type needs to be added
Fixed in d6e69d8da4a4.
verified in Product Version: NetBeans IDE Dev (Build 20090115032805) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb)