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

Revisit Collection.toArray(new T[size]) calls in nashorn and dynalink code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b104
    • generic
    • generic

      See: http://shipilev.net/blog/2016/arrays-wisdom-ancients/

      There are a few Collection.toArray(new T[size]) calls in dynalink and nashorn code - in few places Collection's size is used. Revisit if we can use Collection.toArray(new T[0]).

            sdama Srinivas Dama (Inactive)
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: