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

Remove deprecated elements from ct.sym?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • generic
    • generic

      In JDK 6, by default javac retrieves the bootclasspath information ct.sym instead of rt.jar. The ct.sym file represents a subset of rt.jar; classes just used to implement the JDK itself are hidden from ct.sym. Therefore, such classes are not available at compile time (a possible source incompatabilty), but they remain available at runtime (keeping binary compatability).

      It has been suggested (http://blogs.sun.com/darcy/entry/deprecation_in_the_jdk#comments) that deprecated elements be hidden during compilation but kept at runtime; the same difference currently supported by ct.sym.

      If that policy is provided as an option, ct.sym would be a fine mechanism to support it.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: