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

JLS 7.5.2 "Type-Import-on-Demand Declaration" not correctly implemented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2beta3
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Verified

      Description



      Name: akC45999 Date: 11/17/97



      The section 7.5.2 "Type-Import-on-Demand Declaration" of JLS spec reads:

      a) "It is a compile-time error for a type-import-on-demand declaration to name
      a package that is not accessible (6.6), as determined by the host system (7.2)".

      b) "It is not a compile-time error to name the current package ... in a
      type-import-on-demand declaration".

      In the case when current package is not yet accessible, it is not clear whether
      it is compile-time error or not to name the current package in a
      type-import-on-demand declaration.
      According to common sense, it should not be, but Sun's JDK compiler issues an error.

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            tturnidgsunw Todd Turnidge (Inactive)
            Reporter:
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: