[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-616) Factory method invocation in FullTextQueryImpl swallows exception

Kariem Hussein (JIRA) noreply at atlassian.com
Fri Oct 29 08:50:47 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38932#action_38932 ] 

Kariem Hussein commented on HSEARCH-616:
----------------------------------------

I did not add a test case because it took to long to set up all the requirements to call this method (using decent mock framework would greatly enhance the test suites).

The proposed changes have been added via github fork/pull request: [hibernate-search/pull/3|http://github.com/hibernate/hibernate-search/pull/3]

> Factory method invocation in FullTextQueryImpl swallows exception
> -----------------------------------------------------------------
>
>                 Key: HSEARCH-616
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-616
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 3.3.0.Beta2
>            Reporter: Kariem Hussein
>
> {{org.hibernate.search.query.FullTextQueryImpl.createFilter(FilterDef, Object)}} calls the {{FilterDef}}'s factory method via reflection and throws a {{SearchException}} if it encounters an error. The problem is that the generated exception does not contain the causing throwable, which would be interesting especially for an {{InvocationTargetException}}.
> See also [this forum post|https://forum.hibernate.org/viewtopic.php?p=2434834#p2434834].

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list