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

JAVAH final static const (again!)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • tools
    • beta
    • x86
    • linux



      Name: skT45625 Date: 08/01/2000


      java version "1.2"
      Classic VM (build Linux_JDK_1.2_pre-release-v2, native threads, sunwjit)


      The javah command produces D's on final static const doubles which are not ansi
      standard and will not compile on my linux box. I did find a bug report on the
      exact issue (4110518), but it was decided (for some strange reason) that the D
      is not a problem whilst my compiler disagrees:

      tcs.c: In function `init_calculation_variables':
      tcs.c:120: nondigits in number and not hexadecimal
      tcs.c:122: nondigits in number and not hexadecimal
      tcs.c:123: missing white space after number `7.27220521664304E-5'
      tcs.c:123: parse error before `D'
      tcs.c:124: missing white space after number `4.84813681109536E-6'
      tcs.c:124: parse error before `D'

      etc.

      Also, why the lack of precision? And javah does not update the timestamp on the
      header file, making it difficult to use in Makefiles.
      (Review ID: 107864)
      ======================================================================

            gafter Neal Gafter (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: