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

Implementation of class literals in interfaces could be improved

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.3.0
    • tools
    • generic
    • generic

      The fix for 4241562 is not as good as I would like. In the old compiler,
      class literals appearing in the initializer expressions of static final
      fields were compiled without the caching code used for class literals in
      the general case, saving space and usually saving time. In the new compiler,
      it is difficult to tell what context the literal appears in at the time the
      literal is translated (in TransInner), so this optimization is not performed.
      We should attempt to acommodate it in the future.

      william.maddox@Eng 1999-06-30

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: