The scene was striking: an American president, standing before reporters on foreign soil, declaring that one of his potential successors had "rattled" other heads of state because he had displayed "either an ignorance of world affairs or a cavalier attitude" about them.
President Barack Obama's public disparagement yesterday of Donald Trump, the presumptive Republican nominee, during a news conference in Ise City, Japan, obliterated the now-quaint political convention that partisanship stops at the water's edge. It also revealed a stark truth: The world is worried about Trump.
Although he is not on the November ticket, Obama has a foreign policy legacy to protect, particularly against Trump, who has called the President's approach weak and incoherent.
The billionaire, who has openly mocked foreign dignitaries for questioning his capacity to serve as America's leader, remained unapologetic in the face of Obama's critique.
"When you rattle someone, that's good because many of the world, as you know, many of the countries in our world, our beautiful world, have been absolutely abusing us and taking advantage of us," he said at a news conference in Bismarck, North Dakota. "So if they're rattled, in a friendly way, we're going to have great relationships with these countries."
Several historians said it was rare, if not unprecedented, for an outgoing president to criticise the foreign policy position of someone from the opposite party by name while travelling abroad.
President Dwight D. Eisenhower thought John F. Kennedy was too inexperienced for the job, but he made only an oblique reference to this at the end of the campaign between Kennedy and Richard Nixon. "We need a leader who will not, one day, say that the United States Government should intervene in Cuba and then retract it the next day," Eisenhower said at the time.
Lyndon Johnson detested his 1964 opponent, Barry Goldwater, but refused to mention him by name while on the campaign trail. Instead, according to University of Utah history professor Robert Goldberg, he warned voters of having a "reckless" and "radical" leader with his hand on the nuclear trigger.
The closest an outgoing president has come to launching into a foreign policy critique of a possible successor while abroad was George W. Bush, when he spoke before the Israeli Parliament in 2008. "Some seem to believe that we should negotiate with the terrorists and radicals, as if some ingenious argument will persuade them they have been wrong all along," Bush said, without naming anyone.
I can't think of a prior post-World War II case in which a sitting president has questioned publicly and openly the fitness for office of a major party nominee.
Obama has explicitly criticised Trump several times this year, saying the presidency requires sober judgment, and some leaders have asked him about Trump's most controversial remarks. But he went even further at the close of this week's G-7 summit. The President said foreign leaders are surprised by Trump and they "are not sure how seriously to take some of his pronouncements". "But they're rattled by it - and for good reason - because a lot of the proposals that he's made display either ignorance of world affairs or a cavalier attitude or an interest in getting tweets and headlines instead of actually thinking through what it is that is required to keep America safe and secure and prosperous, and what's required to keep the world on an even keel," he said.
Just four years ago, Obama chastised an adviser to his then-GOP rival Mitt Romney, Glenn Hubbard, for questioning his economic policies in the opinion pages of a German newspaper. "I think, traditionally, the notion has been that America's political differences end at the water's edge," he said after the G-20 summit in Los Cabos, Mexico.
But standing on the world stage yesterday, Obama showed no hesitation to attack Trump.
Fredrik Logevall, the Laurence D. Belfer professor of international affairs at Harvard University, said outgoing presidents "typically maintain a low profile in these situations". "They seek to remain above the fray - it's more dignified, more presidential.
"I can't think of a prior post-World War II case in which a sitting president has questioned publicly and openly the fitness for office of a major party nominee," Logevall added.
For months, Obama operated on the assumption that Trump would simply not become president.
During a trip to Asia in February, he said Americans are too "sensible" to elect him. In April, he recounted how he had reassured one of his wealthy Hollywood donors, "Mr Trump is not succeeding me."
But as polls show a dead heat between Trump and Hillary Clinton, and concerns about her use of a private email server at the State Department persist, the President has become increasingly vocal about the prospect of Trump taking office.
To some extent, the entire concept of political feuds ending at US shores is "an aphorism that serves to shore up an apparent consensus while quieting dissenters", said Nicole Hemmer, a visiting research associate at the University of Virginia's Miller Centre.
What started as a pledge to forge a united front during the Cold War with the Soviet Union showed cracks even during that period and has become even more visible on foreign trips in recent years.
Obama criticised Bush's foreign policy during a visit to Germany during his 2008 presidential bid. Romney repaid the favour to Obama during a trip to Europe and Israel four years later.
But Trump's political rise has upended the traditional calculations both in Washington and capitals across the globe. The Republican has suggested that Japan, South Korea and Saudi Arabia should consider developing nuclear weapons, because proliferation is "going to happen anyway".
He argues for erecting a wall on the southern border to keep undocumented Mexican immigrants out of the US and that the US should have a "total and complete" ban on Muslims "until our country's representatives can figure out what is going on".
British Prime Minister David Cameron called the proposed Muslim ban "stupid and wrong", while Sadiq Khan, the Mayor of London, said Trump is "ignorant" about Islam.
Trump, for his part, called Khan's comments "very nasty" and told ITV host Piers Morgan to convey a message to Cameron: "Tell him I will remember those statements."
Former Mexican President Vicente Fox has used an expletive to describe Trump's wall-building scheme, and even Pope Francis referred to it in scathing terms by telling journalists aboard his papal plane that "a person who thinks only about building walls ... is not a Christian."
But Trump has shot back at them, too, and the man who has just secured enough delegate commitments to claim the GOP nomination had a warning for Obama, as well.
"He is a man who shouldn't be really, you know, airing his difficulties, and he shouldn't be airing what he's airing where he is right now," Trump said.
"And I think that you're going to see it stop pretty soon."