-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2fcs
-
sparc
-
solaris_2.5.1
-
Verified
Name: dkC59003 Date: 06/29/98
By the "Proposal for Extention of Jav(TM) Floating Point Semantics",
Revision 1, May 1998, Section 8.3.3, Constructor Modifiers:
A ConstructorModifier may not be widefp or strictfp.
A compile-time error occurs if either widefp or strictfp appears
as a constructor modifier. This difference between a
ConstructorModifier and MethodModifier is intentional.
JDK 1.2beta4-J compiler incorrectly accepts declaration of a constructor
with strictfp or widefp modifier appeared.
There is no compiler diagnostics for the following incorrect code:
------------------------------------------------------------------
class WrongConstructorModifier {
strictfp WrongConstructorModifier (double abra) {
};
widefp WrongConstructorModifier (float cadabra) {
};
}
------------------------------------------------------------------
This bug is covered by the jmpp test: tests/lang/FP/fpl015/fpl01501m
which is to be included into JCK-1.2beta4
======================================================================