I wonder how many terrorism charges you'd be up on if you did that in the US these days.
Bruce Schneier has discussed this many times on his blog, but from the perspective of flying on someone else's ticket. The problem is that security usually isn't electronically checking that the boarding pass you are holding us actually valid, and the gate isn't checking IDs. This is still possible at many/most US airports.
When I use to have to commute from Birmingham to London regularly I would always buy the economy ticket, get on the train in first class tell the attendants I didn't want a meal then go to sleep. Since I was always in a suit with a laptop bag sleeping no one bothered me and first class was always almost empty where economy would have people forced to stand in the areas at the end of the carriages.
Were you not a member of any loyalty programme? If you get silver or equivalent status they let you use the business class checkin regardless of the class you're actually traveling in. No need for any tricks.
At the time I was not on the airline I was flying and because it was short hops I only made it to the right level near the end and although that allowed business class check in, that's a useless benefit since I was checking in on line. The high level status didn't allow access to the business class security line.
Nice. This would definitely work today (at least at the airports that I usually fly through).
Also would be a pretty good hack to do some duty-free shopping in the international terminal - at security they usually only seem to glance at your boarding pass and wave you through. Who's to say you don't just go shopping and walk back out the arrivals exit?
Often duty-free items are delivered to you at your gate as you board or on the plane. In fact, lately, that's the only option I've seen at airports.
I was always flying in economy but I would check in on line and print my real boarding pass, then modify the PDF of the boarding pass and change it to a seat in business with whatever other indications where necessary for a genuine business class passenger (e.g. the word BUSINESS or PREMIUM in big letters). I got all that information by picking up a discarded boarding pass at the airport.
Then I could arrive at the airport and skip all the lines using my fake boarding pass to go down the special business class channel and then use my real boarding pass to board the plane.
I only did this at airports where boarding passes were manually verified.