Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1350

ConstructorUtils.invokeConstructor(Class, Object...) regression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5, 3.6
    • 3.7
    • lang.reflect.*
    • None

    Description

      As of LANG-1115, the following test program no longer works:

      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 {}
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bjkail Brett Kail
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: