I think it's just a typo, but you are missing the type declaration at
Actually, it is not a typo, it compiles just fine.
How are you graphically rotating them?
I am using Slick2D and I use image.rotate(float degree). Not exactly sure how the actual rotation is done.
The collision detection is simply inconsistent. It does not detect properly.
I increase the rectangles rotation variable with 1 every frame, rotating it clockwise. This differ from yours, which rotates counter-clockwise.
I tried decreasing my rotation variable with 1 every frame instead, making it rotate ccw, no luck.
Also wanted to note that rect.currX and rect.currY points to the unrotated top-left corner of the rectangle.