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 5402 - FastJavac does compile strictfp modifier with contructor.
Summary: FastJavac does compile strictfp modifier with contructor.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-01-15 01:31 UTC by Peter Zavadsky
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 Peter Zavadsky 2000-01-15 01:31:08 UTC
{JDK 1.3-R}

FastJavac compile following file successfully.

/*
 * @test @(#)BadConstructorModifiers.java	1.4 99/10/07

 * @bug 4153038
 * @summary strictfp may not be used with constructors
 * @author David Stoutamire (dps)
 *
 * @run shell BadConstructorModifiers.sh
 */

public class BadConstructorModifiers {

    strictfp BadConstructorModifiers (double abra) { }

}


Probably documented already, only for sure.
Comment 1 Marek Grummich 2000-07-25 09:34:59 UTC
Priority is changed to P4 (normal).
Comment 2 Svata Dedic 2000-09-25 14:11:59 UTC
According to JLS, constructors cannot have `strictfp' modifier: this is an
intentional restriction. Constructor can then be strictfp iff its class is
strictfp.
Comment 3 Svata Dedic 2000-09-25 14:12:59 UTC
Oops, I selected the wrong resolution value ;-) The fastjavac REALLY does not
suffer from the bug in its latest version.
Comment 4 Quality Engineering 2003-07-01 13:15:34 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.