You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/08/21 15:30:00 UTC

[jira] [Resolved] (LANG-1350) ConstructorUtils.invokeConstructor(Class, Object...) regression

     [ https://issues.apache.org/jira/browse/LANG-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved LANG-1350.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 3.7

In Git master. Please verify and fix.

> 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
>             Fix For: 3.7
>
>
> 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)