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

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

XMLWordPrintable

    • 1.2beta3
    • sparc
    • solaris_2.4
    • Verified



      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: