Steve Ebersole commented on Bug HHH-8316

I agree. Using org.jboss.jandex.Index.class.getClassLoader() here is not a good solution. That was done in an effort to keep JandexHelper} a simple static helper. Really this needs access to the {{ClassLoaderService. Couple of options here:

  • Change all JandexHelper method signatures to additionally accept a ClassLoaderService argument
  • Make JandexHelper be no longer static, make it stateful (holding the ClassLoaderService) and looked up from the "Jandex processing context"
  • Somehow pre-populate the "default value map" JandexHelper#DEFAULT_VALUES_BY_ELEMENT.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira