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

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)

Reply via email to