ClassLayout.parseInstance(B) and ClassLayout.parseClass(A).toPrintable(B) are confusing

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jol

      We can do:

       Class.parseClass(A.class).toPrintable(new B());

      ...where A and B are incompatible. This is confusing and dangerous, and should be prohibited.

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: