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

Pretty doesn't print imports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • tools
    • b56
    • generic
    • solaris_8

      Date: Sat, 13 Mar 2004 18:37:28 -0500
      From: <###@###.###>
      Subject: Bug in Pretty.java in generics 2.4
      To: <###@###.###>

      Since generics 2.2 there had been a bug in Pretty.java
      Pretty.java in 2.2, 2.4 and jdk1.5-b40 does not output import
      statements.
      It does output imports with * but not single class ones.

      I know you are very busy with and it is a very low priority for you but
      I wonder if it would be possible to fix it. If it is not possible to fix
      it any time soon I would greatly appreciate if you could let me know

      The problem seems to be in following condition in isUsed statement but I
      am not 100% sure

              if (name == name.table.asterisk ||
                  isUsed(TreeInfo.symbol(imp.qualid), cdef)) {

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: