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

compiler does not understand strictfp/widefp local class

XMLWordPrintable

    • 1.2beta4
    • sparc
    • solaris_2.5.1
    • Not verified



      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
      -------------------------------------------------------

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: