It was almost routine for me to be able to purchase the upgrade from Y to J at the airport on codeshare from United tickets LAX-HND(and the return) because economy was almost always overbooked.
The charge was $500. Their policy seems to have been changed because it's been a few years since the last time I was given the opportunity to do this.