Social media users are decrying the casting of Zach McGowan, a white actor, who has been tapped to play a native Hawaiian in the World War II drama Ni’ihau, as the latest example of Hollywood “whitewashing.”

The film follows the true story of a Japanese pilot, Shigenori Nishikaichi, who crashes his plane on a nearly-uninhabitated Hawaiian island after the Pearl Harbor attack. McGowan, who most recently co-starred in the Emmy-winning series Black Sails, plays Benehakaka “Ben” Kanahele, a Hawaiian island native who kills Nishikaichi.

But according to social media critics, McGowan’s casting is but the latest example of a Hollywood film studio selecting a Caucasian actor to play a role originally suited for a minority character.

Social media users wasted no time airing their criticisms of McGowan’s casting, many of them calling it an example of “whitewashing.”

By accepting this role, you support #whitewashing. Don't ever deny it & don't cry when it bombs bc of boycotting. You're on the wrong side. — Megumi Haggerty (@MegumiHaggerty) May 9, 2017

Today's example of whitewashing is shocking. That's a real person. A real person and you're just going to erase who he is.. — Oliver Stark (@oliverstarkk) May 9, 2017

Iron Fist and GITS annoyed me, but they were at least fictional. Whitewashing actual history is rage-inducing. — Sy Almans (@syalmans) May 9, 2017

Some users posted pictures of Kanahele and McGowan side-by-side.

Zach McGowan to play Ben Kanahele in film, Ni’ihau–based on a true story. This #whitewashing is unacceptable. https://t.co/AEOXIlJx80 pic.twitter.com/r33Ox6gBTL — Nancy Wang Yuen (@nancywyuen) May 9, 2017

Zach McGowan has been cast to play Hawaiian native Ben Kanahele in the upcoming film Ni’ihau. ARE YOU F*CKING KIDDING ME?! #Whitewashout pic.twitter.com/2ONSFCOMuH — Laura 'gobble till you wobble' (@lsirikul) May 9, 2017

One user asked if actor Jason Momoa, whose father is of Native Hawaiian descent, wasn’t available for the role.

Last year, Paramount Pictures’ sci-fi thriller Ghost in the Shell was hit with whitewashing accusations after Scarlett Johansson was cast as the lead role of Major Motoko Kusanagi.

Filming for the historical drama is set to begin at the end of the month at Pinewood Iskandar Malaysia Studios in Malaysia, according to Deadline. Gabriel Robertson is directing the feature and McGowan will executive produce.

Follow Jerome Hudson on Twitter @jeromeehudson