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

[lworld] Experiment with array covariance

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      Add a flag to disable array covariance to experiment with for lw2

      Design discussions wish to look at restricting array covariance.

      LW1 rules:

        * [QFoo; <: [LFoo; <: [Ljava/lang/Object;

      LW2 proposed rules:

        * [LFoo; <: [Ljava/lang/Object;
        * [QFoo; <: Ljava/lang/Object; (i.e. no array covariance for unboxed value arrays
           ** however System.arraycopy accepts both [LFoo; and [QFoo; as source and destination (i.e. mix array of "boxed" values and array "unboxed" values)

            dsimms David Simms
            dsimms David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: