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

JavaFileObject getName issues

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b74
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        From Peter Ahe:
        The problem [with FileObject#getName()] is that when I added getName, it was accidentally
        implemented by a deprecated method in BaseFileObject. This method
        returns the base name, for example, "Object.class" rather than
        "/usr/java/jdk/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)".

        The intent was that this method would return a name which tells the
        user something, but does not use an absolute path if the user didn't.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjg Jonathan Gibbons
                  Reporter:
                  jjg Jonathan Gibbons
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: