Test failure with Java 8

Description

Hi,

There is a test failure when building hibernate-commons-annotations with Java 8:

Environment

None

Activity

Show:

Steve Ebersole May 28, 2015 at 3:57 PM

This is actually also fixed as part of the work I did for HCANN-69. Basically I converted this to just use Proxy#newProxyInstance rather than Proxy#getProxyClass and then doing relfection. Proxy#newProxyInstance handles alot of reflection details, the important one here likely being to set the constructor's visibility to public.

Overall I'd prefer to keep the semantic of allowing annotations to be defined with whatever visibility they want, and this code to be able to deal with it.

Emmanuel Bourg May 22, 2015 at 11:49 AM
Edited

Setting the visibility of the org.hibernate.annotations.common.test.annotationfactory.TestAnnotation interface to public solves this issue.

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

Emmanuel Bourg
Steve Ebersole

Fix versions

Affects versions

Priority

Created June 13, 2014 at 10:31 AM
Updated October 21, 2024 at 7:29 AM
Resolved May 28, 2015 at 3:57 PM