Kinematic Body - angular position limit?

I'm trying to simulate a flipper on a pinball machine.

I originally tried using a dynamic body for the flipper and a RevoluteJoint, but I was getting a lot of tunneling due to the high (and opposite) relative speeds of the ball and the flipper.

I got much better results using a kinematic body for the flipper, but limiting the flipper's upper and lower angles has proven difficult. If I simply set the angular velocity to 0 when it reaches the max angle, it'll stop a non-constant bit past the desired spot. If I use setTransform() to reset it to the desired spot, I get a one-frame "bouncing" effect, plus it severely messes with the physics of the ball if it happens to be in contact during that one frame. What would be the best way of putting a hard limit on the angular motion of a kinematic body?

Unfortunately, I'm using a native-compiled version of box2d for Java with a thin Java wrapper (AndEngine is that wrapper, in case anyone's heard of it), so I don't currently have access to the guts of box2d. If I did, I'd be in there hacking away and not bothering you all!

Thanks in advance!
Have you seen the pinball example in the test bed? It uses dynamic bodies for the flippers and there is no tunneling.
I have been looking at the Pinball example. I'm doing the exact same things as that example and still getting a tunneling problem when using a dynamic body and revolute joint. When the ball is headed straight down and contacts near the end of the flipper, it will often pass right through. Everything else about the simulation is excellent, but a player will no doubt get frustrated if they lose a ball because it passed right through a flipper! I've tried making the flippers and ball thicker, and it still happens (even at modest velocities). Is there any way of explicitly preventing this, even if it costs me some processing time?

Using a kinematic body for the flippers prevented the tunneling, but no matter what I did I got some funky results when the ball contacted the flipper around the time I stopped it at the end of its range of motion. The ball would get "stuck" to the flipper and ride it back down, as if it was a character on an elevator. I even turned the b2_velocityThreshold setting down to zero to guarantee elastic collisions, and still got the sticking problem. If the dynamic body thing doesn't work out, is there a good way of preventing this "sticking" behavior?

Thanks again for your help.

Original thread: https://box2d.org/forum/viewtopic.php?t=6889