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

Inheritance from a forward declared valuetype

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • other-libs
    • None
    • merlin
    • sparc
    • solaris_7
    • Not verified

        As per formal/99-10-07, sec 3.8.4,

        "It is illegal to inherit from a forward-declared valuetype whose definition has not yet been seen."

        However the following code gets compiled without any errors/warnings using IDLJ compiler in merlin b30.

        valuetype A; //defining a valuetype A

        valuetype B : A // illegal
        {
            attribute string str1;
        };

        valuetype A
        {
            attribute string str;
        };

        ********************************************************************************
        ###@###.### 2001-08-17

        - Fix verified ok
          1) with build: j2sdk-1_4_0-beta_refresh-bin-b76-solsparc-15_aug_2001
          2) with test: /tests/product/valuetypes/bugs/bug_4367729

        - I am using muthu's id to verify & close the bugs since i didn't get the id yet.
        ********************************************************************************

              kcavanauorcl Ken Cavanaugh (Inactive)
              arungup Arun Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: