[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    [jira] [Created] (AXIS2-5952) File.mkdir() may fail and cause crash.
From:       "bd2019us (JIRA)" <jira () apache ! org>
Date:       2019-03-31 19:18:00
Message-ID: JIRA.13225099.1554059864000.161709.1554059880803 () Atlassian ! JIRA
[Download RAW message or body]

bd2019us created AXIS2-5952:
-------------------------------

             Summary: File.mkdir() may fail and cause crash.
                 Key: AXIS2-5952
                 URL: https://issues.apache.org/jira/browse/AXIS2-5952
             Project: Axis2
          Issue Type: Bug
            Reporter: bd2019us


Locations:

(1) modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/wiz=
ardframe/WizardFrame.java:409

(2) modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/bea=
n/SrcCompiler.java:50

The File.mkdir() method will fail if the parent directory does not exist. I=
n this case, since=C2=A0we cannot ensure the existence of parent directory =
and we still need to create the directory, the File.mkdirs() should be pref=
erred, which is safe and without any lost.=C2=A0



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic