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

javac-ea.exe creates incorrect bytecode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.1
    • vm-legacy



      Name: rlT66838 Date: 06/07/99


      The following code when compiled under javac.exe works just
      fine, but when its compiled using javac-ea.exe and then run the
      JVM (java.exe) gives an error.

      public class test
      {
          static final int MAX_CONNECTIONS = 256;
          static int TotalConnections = 0;

          public static void main(String args[])
          {
              Start();
          }

          public static void Start()
          {
              System.out.println("Server on-line");
              while (true)
              {
                  try
                  {
                      while (ModifyTotalConnections(0) == MAX_CONNECTIONS);// Thread.sleep(10);
                  }
                  catch (Exception e)
                  {
                      System.out.println("ouch");
                  }

                  for (int i = 0; i < MAX_CONNECTIONS; i++)
                  {
                  }

              }

          }

          static synchronized int ModifyTotalConnections(int value)
          {
              TotalConnections = TotalConnections + value;
              return TotalConnections;
          }
      }

      The following error message is recieved:
      A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
       occurred in :
        'test.Start ()V': Interpreting method.
        Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
      i
      (Review ID: 84044)
      ======================================================================

            Unassigned Unassigned
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: