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

Internal error. See attached. If constructor code erased, it compiles.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • tools
    • None
    • x86
    • windows_nt



      Name: mc57594 Date: 02/28/97


      // Simply run "javac bug.java" on Windows NT with JDK1.1 --

      import java.util.*;
      import java.lang.*;

      public class bug // Javac 1.0.2 does not show this bug.
      {
          final char aChar='a';
          Vector v = new Vector();

          public bug(char x) {
      /*--- if the body is commented out, javac 1.1 compiles.*/
              switch (x) {
              case aChar: v.addElement("a");
              }
      /* ---*/
          }

          public void ok(char x) {
              switch (x) {
              case aChar: v.addElement("a");
              }
          }

      } // end of class bug.

      company - SQRiBE Technologies , email - ###@###.###
      ======================================================================

            tturnidgsunw Todd Turnidge (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: