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

void a[]; should not compile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.2.0
    • 1.1, 1.1.3
    • tools
    • 1.2beta
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_nt
    • Not verified



      Name: mc57594 Date: 02/26/97


      Hi,

      I think this code should not compile. But it does,
      Java 1.1 beta 2 on Solaris seems to have no problem
      with it :-).

      class t
      {
          void a[];

          void[] x()
          {
      a = x();
      return a;
          }
      }

      Best regards,
      Tudor

      P.S.
      The bug has been discovered by Mark MacBeth, ###@###.###.



      company - University of New Hampshire , 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: