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

Double.MIN_VALUE is not treated as a Java constant

    XMLWordPrintable

Details

    • beta
    • generic
    • generic

    Description

      The static final field Double.MIN_VALUE is set using the method longBitsToDouble instead of using the appropriate floating-point literal. Double.MAX_VALUE, Float.MIN_VALUE, and Float.MAX_VALUE are set with floating-point literals. Therefore, the latter three values act as Java constants (JLS v2 15.28) while the former does not. This creates problems in situations where a programmer wants to use Double.MIN_VALUE as a constant.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: