hibernate/hibernate-search — pull request #280 by gbadner (2012-04-25 19:55:22+00:00)
Title: HSEARCH-1106 : Compile error on MappingModelMetadataProvider on some JVMs only

This pull request simply changes MappingModelMetadataProvider.createAnnotation() to return Annotation (instead of ). When this method is used, the return value is cast to the expected type.

This was failing using my Java environment:

Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

It compiles successfully using this pull request.