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

javac-ea.exe creates incorrect bytecode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: vm-legacy
    • Labels:

      Description



      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)
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: