hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Harmath (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12654) Move FileSystem.initialize to constructor
Date Thu, 17 Dec 2015 15:35:46 GMT

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

Dennis Harmath commented on HADOOP-12654:
-----------------------------------------

Sorry, I did not know about FileSystem.get() and .getLocal(). Then the constructors' JavaDoc
should contain: "Don't call this directly, call FileSystem.get()/getLocal() instead."

> Move FileSystem.initialize to constructor
> -----------------------------------------
>
>                 Key: HADOOP-12654
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12654
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.7.1
>            Reporter: Dennis Harmath
>            Priority: Minor
>
> After calling the FileSystem constructor, the instance is not initialized yet, but FileSystem#initialize
has to be called, otherwise an NPE is thrown when using the instance. The constructor should
create a valid instance instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message