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

Debug message when using ?:

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0
    • 1.0
    • tools
    • 1.0beta
    • sparc
    • solaris_2.4
    • Not verified


      When compiling:

       int barLength = (depth > 0)?xCap / depth: xCap;

      message:
      (?: (expr (> depth#-300214632 0)) (/ xCap#-300209808 depth#-300214632) xCap#-300209808)



      From siebe@scndprsn Wed Oct 11 20:53:04 1995
      From: siebe@scndprsn (Siebe Brouwer)
      To: avh@scndprsn
      Subject: message

      Ik snap wel waarom deze message gegenereerd kan worden maar het lijkt me vreemd dat er zo'n message
      getoond kan worden bij het compilen.

       int barLength = (depth > 0)?xCap / depth: xCap;

      message:
      (?: (expr (> depth#-300214632 0)) (/ xCap#-300209808 depth#-300214632) xCap#-300209808)


      int barLength = ((depth > 0)?xCap / depth: xCap);
      geen message.

      Misschien heb ik het verkeerd.

      Greetinx Siebe.

      ______________________________________________
          ____ | Siebe R. Brouwer | . _ .
         /# /_\\_ | | |\\_|/__/|
        | |/o\\o\\ | work : Sun Microsystems Inc. | / / \\/ \\ \\
        | \\\\_/_/ | m/s: UPAL02 - 401 | /__|O||O|__ \\
       / |_ | | 100 Hamilton Avenue | |/_ \\_/\\_/ _\\ |
      | ||\\_ ~| | Palo Alto CA 94301, USA | | | (____) | ||
      | ||| \\/ | phone : (415) 473 7214 | \\/\\___/\\__/ //
      | |||_ | fax : (415) 473 7104 | (_/ ||
       \\// | | | | ||
        || | | home : 165 east O'Keefe street, app. 28 | | ||\\
        ||_ \\ | Menlo Park, CA 94025, USA | \\ //_/
        \\_| o| | phone : (415) 323 9587 | \\______//
        /\\___/ | | __ || __||
       / ||||__ | E-mail : ###@###.### | (____( __||
          (___)_) | : ###@###.### | /~~~~~~~~~~~\\
                   | |
        Ren Hoek | Homepage: http://java.sun.com/people/siebe/ | Stimpson J. Cat
      |______________________________________________|
      HAPPY HAPPY JOY JOY

      From siebe@scndprsn Wed Oct 11 21:35:43 1995
      From: siebe@scndprsn (Siebe Brouwer)
      To: avh@scndprsn
      Subject: mesage 2

      I was wrong I think,

      It only works when I define the barLength first.

      like:

      int barLength;
      barLength = depth > 0 ? xCap / depth: xCap;

      when I use:

      int barLength = depth > 0 ? xCap / depth: xCap;

      I 'll get the message:

      (?: (> depth#-300232968 0) (/ xCap#-300228000 depth#-300232968) xCap#-300228000)

      But it should work right.

      Then I tried to simulate it but I couldn't get the same message.

      Greetinx Siebe.

      ______________________________________________
          ____ | Siebe R. Brouwer | . _ .
         /# /_\\_ | | |\\_|/__/|
        | |/o\\o\\ | work : Sun Microsystems Inc. | / / \\/ \\ \\
        | \\\\_/_/ | m/s: UPAL02 - 401 | /__|O||O|__ \\
       / |_ | | 100 Hamilton Avenue | |/_ \\_/\\_/ _\\ |
      | ||\\_ ~| | Palo Alto CA 94301, USA | | | (____) | ||
      | ||| \\/ | phone : (415) 473 7214 | \\/\\___/\\__/ //
      | |||_ | fax : (415) 473 7104 | (_/ ||
       \\// | | | | ||
        || | | home : 165 east O'Keefe street, app. 28 | | ||\\
        ||_ \\ | Menlo Park, CA 94025, USA | \\ //_/
        \\_| o| | phone : (415) 323 9587 | \\______//
        /\\___/ | | __ || __||
       / ||||__ | E-mail : ###@###.### | (____( __||
          (___)_) | : ###@###.### | /~~~~~~~~~~~\\
                   | |
        Ren Hoek | Homepage: http://java.sun.com/people/siebe/ | Stimpson J. Cat
      |______________________________________________|
      HAPPY HAPPY JOY JOY

            fyellinsunw Frank Yellin (Inactive)
            ahoffsunw Arthur Hoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: