Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4153038

compiler incorrectly accepts strictfp/widefp constructor

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Description



      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

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            dstoutamsunw David Stoutamire (Inactive)
            Reporter:
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: