Make members of non-public constraint types accessible

Description

HV fails to process constraints which are declared as package-private (i.e. no "public" modifier) and are used on a bean in the same package. The error only shows up on Java 8, apparently some changes with respect to access checks happened. The TCK test ConstraintDefinitionsTest#testConstraintWithCustomAttributes() fails due to that.

To fix the issue, invoked annotation members should be set accessible prior to invocation (ConstraintHelper#getMultiValueConstraints(), ConstraintDescriptorImpl#buildAnnotationParameterMap()

Environment

None

Activity

Show:

Gunnar MorlingJanuary 6, 2014 at 11:22 AM

Fixed

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Gunnar Morling

Components

Fix versions

Affects versions

Priority

Created December 18, 2013 at 2:33 PM
Updated January 28, 2014 at 9:51 AM
Resolved January 7, 2014 at 10:09 AM

Flag notifications