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

javap should not scan ct.sym by default

    Details

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

      Description

      javap currently scans ct.sym by default and provides -XDignore.symbol.file to disable that behavior, all in line with javac.

      This is surprising to some users. It would be better to ignore ct.sym by default and ensure that classes can be read from ct.sym if desired.

        Activity

        Hide
        jjg Jonathan Gibbons added a comment -
        BT2:EVALUATION

        Yes.

        Note that using the standard FileManager, you cannot put *.sym files on the classpath -- only *.zip and *.jar files are accepted. The hack workaround is to rename the file. A better facility in javac would be to allow URLs for files to be specified on the command line, then you could specify a class as something like
        java:ct.sym!java/lang/Object.class
        Show
        jjg Jonathan Gibbons added a comment - BT2:EVALUATION Yes. Note that using the standard FileManager, you cannot put *.sym files on the classpath -- only *.zip and *.jar files are accepted. The hack workaround is to rename the file. A better facility in javac would be to allow URLs for files to be specified on the command line, then you could specify a class as something like java:ct.sym!java/lang/Object.class

          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: