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

Summary: FastJavac does compile strictfp modifier with contructor.
Product: java Reporter: Peter Zavadsky <pzavadsky>
Component: UnsupportedAssignee: Peter Zavadsky <pzavadsky>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.