world war 2 movie

I saw a movie where GI’s were stranded on an island and escaped by flying a Japanese plane where they painted USA insignia on it.  They got into a rain squall, the paint started coming off and the USA started blasting at them not knowing they were friendly. What was the name of the film?

Got something to say?