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

integer declaration to long does not complain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: unknown, 1.1, 1.1.2, 1.1.4, 1.1.5, 1.1.6
    • Fix Version/s: 1.2.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.5, solaris_2.6, windows_nt
    • Verification:
      Not verified

      Description



      Name: mc57594 Date: 02/27/97


      int i = 100000000000;

      I think that the compiler should complain about this.
      Rather it says nothing and tries to convert.

      After this statement is executed i = 1215752192;

      This could be a very very nasty bug that the compiler
      could easily warn about.

      Tell the programmer that this number requires an "L" or something.


      company - Mentor Graphics Corp. , email - ###@###.###
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tturnidgsunw Todd Turnidge (Inactive)
              Reporter:
              mchamnessunw Mark Chamness (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: