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 32864 - MethodElement.getModifiers() does not return the strictfp modifier
Summary: MethodElement.getModifiers() does not return the strictfp modifier
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 14:44 UTC by psiradiance
Modified: 2007-09-26 09:14 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 psiradiance 2003-04-14 14:44:03 UTC
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().
Comment 1 Jan Becicka 2004-08-05 14:04:11 UTC
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.
Comment 2 Quality Engineering 2007-09-20 11:50:45 UTC
Reorganization of java component