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

tutorial bug: compiler does not import default package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0
    • docs
    • None
    • rc
    • generic
    • solaris_8

      From a user comment in
      <http://andorra1.sfbay:8080/cgi-bin/ws.exe/bugtraq/jdk/bug.hts?bugid_value=4361575>

      You might want to change the following text from
      http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html

      For your convenience, the Java runtime system automatically
      imports three entire packages:

      The default package (the package with no name)
      The java.lang package
      The current package

      This is incorrect, as the compiler does not import the default package
      unless it is the current package.

            duke J. Duke
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: