When Adam Sandler made “Funny People” — one of those surprisingly good comedies he does maybe twice a decade, just to mess with us — the best, bitterest joke was the idea of him playing an angry actor who made his fortune off low-brow, high-concept comedies.

The movie starts out in don’t-go-there territory and then goes further as it tells the story of a 1980s middle-schooler who is seduced by his teacher. She gets pregnant and goes to jail. He becomes a tabloid celebrity, and then an alcoholic.

Skip ahead 20 or so years, and the product of that union — who has had nothing to do with his father since he turned 18 — is about to get married. And guess who turns up before the wedding, looking to reconnect and maybe borrow a whole lot of money?

As I said, low-brow, high-concept.

The movie feels a bit like early Farrelly Brothers, from the New England locations to the obsession with bodily fluids and the jokes about sex with old women. It’s all politically incorrect — deliberately so — but that’s not the problem here. The problem is it’s not particularly funny.

As the father, Sandler wears a black wig that looks as if it were combed with a rake, and approximates a Boston accent by talking through his nose and sticking “wicked” in every other sentence. As his son, Andy Samberg has all the screen presence of a soft-boiled egg.

There are two things that give the movie a bit of juice. One is the epic bachelor party this misfit father is determined to throw his son. It doesn’t approach the bacchanalian excess of the first “The Hangover” (or even “Bridesmaids”), but is ugly and outrageous and sometimes even makes you laugh.

The other thing that livens things up is the supporting cast. It’s a surprising collection of serious actors in comic roles and pop-culture has-beens in knowing takeoffs, and while I don’t want to say who does what, some of the familiar faces include Tony Orlando and Vanilla Ice.

There’s also a nicely insane turn by Milo Ventimiglia as perhaps the least pleasant Marine since Preston Sturges’ “Hail the Conquering Hero.” And I promise that is the first and last time I will ever invoke Sturges while reviewing an Adam Sandler movie.

Because most of this is just gross without being funny, full of the go-to jokes (fat people running! old people talking dirty!) that only dirty-minded kids would laugh at.

You know, the kind of kids who sat in school leering at the librarian and thinking about Van Halen’s “Hot for Teacher.” And then grew up to make movies like this.