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

Internal Error in the compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0
    • 1.0
    • tools
    • 1.0beta
    • sparc
    • generic
    • Not verified

      Compiling the following function gives an internal error in the compiler

           static void test (long word) {
               for (; word != 0; word >>>= 1) {
                   System.out.print("hello");
               }
           }

      It complains about a stack depth error.

      When looking at the code, it seems that the problem is that the compiler generates
      lconst_1 instead of iconst_1.

      I'm assigning this to AVH, but I'll take a quick look at it to see if I can figure out what's
      going on before he gets back.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: