commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1350) ConstructorUtils.invokeConstructor(Class, Object...) regression
Date Sat, 19 Aug 2017 18:11:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16134212#comment-16134212
] 

Gary Gregory commented on LANG-1350:
------------------------------------

Patches welcome ;-)

> ConstructorUtils.invokeConstructor(Class, Object...) regression
> ---------------------------------------------------------------
>
>                 Key: LANG-1350
>                 URL: https://issues.apache.org/jira/browse/LANG-1350
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.reflect.*
>    Affects Versions: 3.5, 3.6
>            Reporter: Brett Kail
>
> As of LANG-1115, the following test program no longer works:
> {noformat}
> public class ConstructorUtilsTest {
> 	@Test
> 	public void test() throws Exception {
> 		ConstructorUtils.invokeConstructor(TestCtor.class, new A() {}, new B[0]);
> 	}
> 	public static class TestCtor {
> 		public TestCtor(A a, B... b) {}
> 	}
> 	public static class A {}
> 	public static class B {}
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message