[
https://issues.apache.org/jira/browse/HDFS-15927?focusedWorklogId=573022&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-573022
]
ASF GitHub Bot logged work on HDFS-15927:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Mar/21 11:56
Start Date: 27/Mar/21 11:56
Worklog Time Spent: 10m
Work Description: GauthamBanasandra opened a new pull request #2824:
URL: https://github.com/apache/hadoop/pull/2824
* Need to catch polymorphic exception types by
reference in order to realize the polymorphic
usage. Otherwise, the functionality of the
caught object is restricted to only that of
the base class.
--
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 573022)
Remaining Estimate: 0h
Time Spent: 10m
> Catch polymorphic type by reference
> -----------------------------------
>
> Key: HDFS-15927
> URL: https://issues.apache.org/jira/browse/HDFS-15927
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: libhdfs++
> Affects Versions: 3.4.0
> Reporter: Gautham Banasandra
> Assignee: Gautham Banasandra
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Need to catch polymorphic exception types by reference in order to realize
> the polymorphic usage, if any. Otherwise, the functionality of the caught
> object is restricted to only that of the base class.
> Also, the following warning gets reported since it's currently caught by
> value -
> {code:java}
> [WARNING]
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:138:22:
> warning: catching polymorphic type 'const class hdfs::uri_parse_error' by
> value [-Wcatch-value=]
> [WARNING]
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-2792/src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/common/hdfs_configuration.cc:151:27:
> warning: catching polymorphic type 'struct hdfs::ha_parse_error' by value
> [-Wcatch-value=]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]