[ 
https://issues.apache.org/jira/browse/HADOOP-17287?focusedWorklogId=492789&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-492789
 ]

ASF GitHub Bot logged work on HADOOP-17287:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Sep/20 05:20
            Start Date: 30/Sep/20 05:20
    Worklog Time Spent: 10m 
      Work Description: maobaolong commented on a change in pull request #2341:
URL: https://github.com/apache/hadoop/pull/2341#discussion_r497248808



##########
File path: 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestReflectionUtils.java
##########
@@ -168,6 +168,13 @@ public void testLogThreadInfo() throws Exception {
         containsString("Process Thread Dump: " + title));
   }
 
+  @Test
+  public void testNewInstanceForNonDefaultConstructor() {
+    Object x = ReflectionUtils.newInstance(
+        NoDefaultCtor.class, null, new Class[] {int.class}, 1);
+    Assert.assertTrue(x instanceof NoDefaultCtor);

Review comment:
       Thanks for check this for me, done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 492789)
    Time Spent: 1.5h  (was: 1h 20m)

> Support new Instance by non default constructor by ReflectionUtils
> ------------------------------------------------------------------
>
>                 Key: HADOOP-17287
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17287
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 3.4.0
>            Reporter: maobaolong
>            Assignee: maobaolong
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to