Tinker Bell and the Lost Treasure and Summer Wars were both animated films created in 2009; however, which one had a main character that originated from a play by J.M. Barrie?
Tinker Bell and the Lost Treasure: Tinker Bell and the Lost Treasure is a 2009 computer-animated comedy adventure film and the second installment in the "Disney Fairies" franchise. Summer Wars: Summer Wars (Japanese: サマーウォーズ , Hepburn: Samā Wōzu ) is a 2009 Japanese animated science fiction film directed by Mamoru Hosoda, animated by Madhouse and distributed by Warner Bros. Summer Wars:  However, he is falsely implicated in the hacking of a virtual world by a sadistic artificial intelligence named Love Machine. Summer Wars:  Kenji must repair the damage done to it and find a way to stop the rogue computer program from causing any further damage.
i don't know