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

Hotspot compiler changes behaviour of program

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.2_04
    • Fix Version/s: 1.4.2_06
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      06
    • CPU:
      sparc
    • OS:
      solaris_8

      Backports

        Description

        The test case is as follows.

        import cryptix.tools.UnixCrypt;

        public class Test {
          public static void main(String args[]) {
             String cryptPass ="";
             String prePass = "";
             String account = "abcdefg";
             String password = "abcdefghi123";
             UnixCrypt jc = new UnixCrypt(account);
             for(int i = 0; i < 10000; i++)
             {
               cryptPass = jc.crypt(password);
               if(i != 0)
               {
                   if(!prePass.equals(cryptPass))
                   {
                      System.out.println("Mismatch");
                      break;
                   }
                }
                prePass = cryptPass;
             }
          }
        }

        j2sdk1.4.2_04/bin/java -server -classpath .:cryptix32.jar Test

        A mismatch is found when it shouldnt occur.

        The problem is not occuring when using 1.3.1_11 or 1.5.0-beta2-b49.
        ###@###.### 2004-05-18
        ###@###.### 2004-05-18

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rknippelsunw Ross Knippel (Inactive)
                  Reporter:
                  fchoong Fui-Shien Choong (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: