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.
I can set the strictfp modifier on a method by doing this: MethodElement foo = getMyMethod(); foo.setModifiers(Modifier.STRICT); This updates the source of my method correctly, for instance, to strictfp void foo() { } However, if I now call getModifiers() on the MethodElement, the returned modifiers don't include the strictp modifier. MethodElement.getModifierMask() doesn't include the strictfp modifier either. I believe this is a bug, since Modifier.STRICT is a valid modifier for methods, and the strictfp modifier should be returned by getModifiers().
Fixed in promo-D by new JMI based java model. I've tested it and it and java.lang.reflect.Modifier.isStrict(e.getModifiers()) returns true.
Reorganization of java component