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

javac reports syntax err when use wildcard in import statement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: