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

Warning of infinite loops involving local variables

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • tools
    • x86
    • windows_2000

      Consider warning about cases like this:

      while (counter!=MAX_SIZE) {
         // do something
         // counter is never assigned something herein between
         // this is a bug example of an infinite loop
      }
      return someObject;

      ###@###.### 2005-03-17 03:04:13 GMT

            jjg Jonathan Gibbons
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: