Fix (and test) exceptions not being thrown because we call "log.someMethod();" instead of "throw log.someMethod();"

Description

It seems a few problems were introduced with HSEARCH-3082, where we create an exception but forget to throw it.

Two things to do:

1. Throw the exception, obviously
2. Add a test for each such problem, because an untested feature is a non-existent feature.

I noticed the problem in org.hibernate.search.mapper.pojo.model.impl.AbstractPojoModelCompositeElement#createAccessor(java.lang.Class<T>), but there may be others.

Activity

Show:
Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Created November 6, 2018 at 11:06 AM
Updated November 28, 2018 at 3:43 PM
Resolved November 6, 2018 at 4:35 PM