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

[lworld] Inconsistent preload attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • tools

      value class MyValue {
          int x = 0;
      }

      public class Test {
          static void method(Object o) { }

          public static void main(String[] args) {
              // (1)
              MyValue val = new MyValue();
              // (2)
              method(new MyValue());
          }
      }

      If I only have (1), then Test.class has a MyValue preload attribute.
      If I only have (2), there is no preload attribute.

            vromero Vicente Arturo Romero Zaldivar
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: