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

javac reports syntax err when use wildcard in import statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 1.1.2
    • 1.1.1, 1.1.5
    • tools
    • None
    • b01
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_nt
    • Not verified

    Description

      I have a jar file specified in my classpath, and the jar file doesn't have directory entries for the packages of the classes in the jar. For example, in jelly0.jar that contains the JellyBean.class entry, I don't have the sunw/demo/jelly directory listed as an entry. I got a syntax error when I use wildcard in my import statement that looks like "import sunw.demo.jelly.*". I have attached an example to demonstrate this problem.

      Attachments

        Issue Links

          Activity

            People

              dstoutamsunw David Stoutamire (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: