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

compiler does not understand strictfp/widefp local class

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Not verified

      Description



      Name: dkC59003 Date: 06/21/98



      The bug concerns new class modifiers strictfp and widefp defined by
      Proposal for Extension of Java Floating Point Semantics, Revision 1.

      JDK 1.2beta4-J compiler does not parse correctly declaration of
      a local (declared within a method) class if there is one of the new
      keywords strictfp, widefp.

      An example and compiler diagnostics follow:
      -------------------------------------------------------
      class test {

      static double m() {
      strictfp class Inn {
      float i;
      }
      return 2.0;
      }
      }
      -------------------------------------------------------
      /export/ld14/java/dest/jdk1.2b4J/solaris/bin/javac test.java
      test.java:3: Missing term.
      static double m() {
      ^
      test.java:3: ';' expected.
      static double m() {
      ^
      test.java:4: Invalid expression statement.
      strictfp class Inn {
      ^
      test.java:4: '}' expected.
      strictfp class Inn {
      ^
      test.java:7: Class or interface declaration expected.
      return 2.0;
      ^
      5 errors
      -------------------------------------------------------

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

        Attachments

          Issue Links

            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: