Menu

#1454 [java] OptimizableToArrayCall is outdated and invalid in current JVMs

New Tickets
closed
None
PMD
3-Major
Bug
2017-12-09
2016-01-21
Juan Sotuyo
No

As recently explained by an Oracle engineer, current JVMs perform better with 0-sized arrays than properly sized ones.

The complete analysis can be found here: http://shipilev.net/blog/2016/arrays-wisdom-ancients/

Discussion

  • Cd-MaN

    Cd-MaN - 2016-01-26

    Came here to say this, thank you for already filling an issue!

     
  • Andreas Dangel

    Andreas Dangel - 2017-01-08
    • summary: OptimizableToArrayCall is outdated and invalid in current JVMs --> [java] OptimizableToArrayCall is outdated and invalid in current JVMs
     
  • Andreas Dangel

    Andreas Dangel - 2017-12-01

    This will be part of PMD 6.0.0

     
  • Andreas Dangel

    Andreas Dangel - 2017-12-09
    • status: open --> closed
    • assigned_to: Andreas Dangel
     
  • Andreas Dangel

    Andreas Dangel - 2017-12-09

    Fixed with PMD 6.0.0. See PR https://github.com/pmd/pmd/pull/775

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.