[jira] [Updated] (LOGGING-163) BufferedReader is not closed properly

2024-01-25 Thread Gary D. Gregory (Jira)


 [ 
https://issues.apache.org/jira/browse/LOGGING-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory updated LOGGING-163:

Fix Version/s: 1.3.0
   (was: 1.3.1)

> BufferedReader is not closed properly
> -
>
> Key: LOGGING-163
> URL: https://issues.apache.org/jira/browse/LOGGING-163
> Project: Commons Logging
>  Issue Type: Bug
>Affects Versions: 1.1.1, 1.2
>Reporter: Kaloyan Spiridonov
>Assignee: Gary D. Gregory
>Priority: Major
> Fix For: 1.3.0
>
>
> In LogFactory class at line 552 there is BufferedReader that is not closed 
> properly. For example if rd.readLine(); throw an exception then the Reader 
> will remain open.
> {code}
>  BufferedReader rd;
> try {
> rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
>  } catch (java.io.UnsupportedEncodingException e) {
>  rd = new BufferedReader(new InputStreamReader(is));
> }
> String factoryClassName = rd.readLine();
> rd.close();
> {code}
> In SimpleLog class at line 163 there is InputStream that is not closed 
> properly. 
> {code}
> InputStream in = getResourceAsStream("simplelog.properties");
> if(null != in) {
> try {
> simpleLogProps.load(in);
> in.close();
> } catch(java.io.IOException e) {
> // ignored
> }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (LOGGING-163) BufferedReader is not closed properly

2017-09-26 Thread Benedikt Ritter (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOGGING-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter updated LOGGING-163:

Fix Version/s: (was: Nightly Builds)
   1.2.1

> BufferedReader is not closed properly
> -
>
> Key: LOGGING-163
> URL: https://issues.apache.org/jira/browse/LOGGING-163
> Project: Commons Logging
>  Issue Type: Bug
>Affects Versions: 1.1.1, 1.2
>Reporter: Kaloyan Spiridonov
>Assignee: Gary Gregory
> Fix For: 1.2.1
>
>
> In LogFactory class at line 552 there is BufferedReader that is not closed 
> properly. For example if rd.readLine(); throw an exception then the Reader 
> will remain open.
> {code}
>  BufferedReader rd;
> try {
> rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
>  } catch (java.io.UnsupportedEncodingException e) {
>  rd = new BufferedReader(new InputStreamReader(is));
> }
> String factoryClassName = rd.readLine();
> rd.close();
> {code}
> In SimpleLog class at line 163 there is InputStream that is not closed 
> properly. 
> {code}
> InputStream in = getResourceAsStream("simplelog.properties");
> if(null != in) {
> try {
> simpleLogProps.load(in);
> in.close();
> } catch(java.io.IOException e) {
> // ignored
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LOGGING-163) BufferedReader is not closed properly

2016-10-17 Thread Gary Gregory (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOGGING-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory updated LOGGING-163:
-
Affects Version/s: 1.2

> BufferedReader is not closed properly
> -
>
> Key: LOGGING-163
> URL: https://issues.apache.org/jira/browse/LOGGING-163
> Project: Commons Logging
>  Issue Type: Bug
>Affects Versions: 1.1.1, 1.2
>Reporter: Kaloyan Spiridonov
>
> In LogFactory class at line 552 there is BufferedReader that is not closed 
> properly. For example if rd.readLine(); throw an exception then the Reader 
> will remain open.
> {code}
>  BufferedReader rd;
> try {
> rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
>  } catch (java.io.UnsupportedEncodingException e) {
>  rd = new BufferedReader(new InputStreamReader(is));
> }
> String factoryClassName = rd.readLine();
> rd.close();
> {code}
> In SimpleLog class at line 163 there is InputStream that is not closed 
> properly. 
> {code}
> InputStream in = getResourceAsStream("simplelog.properties");
> if(null != in) {
> try {
> simpleLogProps.load(in);
> in.close();
> } catch(java.io.IOException e) {
> // ignored
> }
> }
> {code}



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


[jira] [Updated] (LOGGING-163) BufferedReader is not closed properly

2016-10-17 Thread Kaloyan Spiridonov (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOGGING-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kaloyan Spiridonov updated LOGGING-163:
---
Description: 
In LogFactory class at line 552 there is BufferedReader that is not closed 
properly. For example if rd.readLine(); throw an exception then the Reader will 
remain open.
{code}
 BufferedReader rd;
try {
rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
 } catch (java.io.UnsupportedEncodingException e) {
 rd = new BufferedReader(new InputStreamReader(is));
}

String factoryClassName = rd.readLine();
rd.close();
{code}

In SimpleLog class at line 163 there is InputStream that is not closed 
properly. 

{code}
InputStream in = getResourceAsStream("simplelog.properties");
if(null != in) {
try {
simpleLogProps.load(in);
in.close();
} catch(java.io.IOException e) {
// ignored
}
}
{code}

  was:
In LogFactory class at line 552 there is BufferedReader that is not closed 
properly. For example if rd.readLine(); throw an exception then the Reader will 
remain open.

 BufferedReader rd;
try {
rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
 } catch (java.io.UnsupportedEncodingException e) {
 rd = new BufferedReader(new InputStreamReader(is));
}

String factoryClassName = rd.readLine();
rd.close();


In SimpleLog class at line 163 there is InputStream that is not closed 
properly. 

InputStream in = getResourceAsStream("simplelog.properties");
if(null != in) {
try {
simpleLogProps.load(in);
in.close();
} catch(java.io.IOException e) {
// ignored
}
}


> BufferedReader is not closed properly
> -
>
> Key: LOGGING-163
> URL: https://issues.apache.org/jira/browse/LOGGING-163
> Project: Commons Logging
>  Issue Type: Bug
>Affects Versions: 1.1.1
>Reporter: Kaloyan Spiridonov
>
> In LogFactory class at line 552 there is BufferedReader that is not closed 
> properly. For example if rd.readLine(); throw an exception then the Reader 
> will remain open.
> {code}
>  BufferedReader rd;
> try {
> rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
>  } catch (java.io.UnsupportedEncodingException e) {
>  rd = new BufferedReader(new InputStreamReader(is));
> }
> String factoryClassName = rd.readLine();
> rd.close();
> {code}
> In SimpleLog class at line 163 there is InputStream that is not closed 
> properly. 
> {code}
> InputStream in = getResourceAsStream("simplelog.properties");
> if(null != in) {
> try {
> simpleLogProps.load(in);
> in.close();
> } catch(java.io.IOException e) {
> // ignored
> }
> }
> {code}



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


[jira] [Updated] (LOGGING-163) BufferedReader is not closed properly

2016-10-17 Thread Kaloyan Spiridonov (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOGGING-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kaloyan Spiridonov updated LOGGING-163:
---
Description: 
In LogFactory class at line 552 there is BufferedReader that is not closed 
properly. For example if rd.readLine(); throw an exception then the Reader will 
remain open.

 BufferedReader rd;
try {
rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
 } catch (java.io.UnsupportedEncodingException e) {
 rd = new BufferedReader(new InputStreamReader(is));
}

String factoryClassName = rd.readLine();
rd.close();


In SimpleLog class at line 163 there is InputStream that is not closed 
properly. 

InputStream in = getResourceAsStream("simplelog.properties");
if(null != in) {
try {
simpleLogProps.load(in);
in.close();
} catch(java.io.IOException e) {
// ignored
}
}

  was:
In LogFactory class at line 552 there is BufferedReader that is not closed 
properly. For example if rd.readLine(); throw an exception then the Reader will 
remain open.

 BufferedReader rd;
try {
rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
 } catch (java.io.UnsupportedEncodingException e) {
 rd = new BufferedReader(new InputStreamReader(is));
}

String factoryClassName = rd.readLine();
rd.close();


> BufferedReader is not closed properly
> -
>
> Key: LOGGING-163
> URL: https://issues.apache.org/jira/browse/LOGGING-163
> Project: Commons Logging
>  Issue Type: Bug
>Affects Versions: 1.1.1
>Reporter: Kaloyan Spiridonov
>
> In LogFactory class at line 552 there is BufferedReader that is not closed 
> properly. For example if rd.readLine(); throw an exception then the Reader 
> will remain open.
>  BufferedReader rd;
> try {
> rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
>  } catch (java.io.UnsupportedEncodingException e) {
>  rd = new BufferedReader(new InputStreamReader(is));
> }
> String factoryClassName = rd.readLine();
> rd.close();
> In SimpleLog class at line 163 there is InputStream that is not closed 
> properly. 
> InputStream in = getResourceAsStream("simplelog.properties");
> if(null != in) {
> try {
> simpleLogProps.load(in);
> in.close();
> } catch(java.io.IOException e) {
> // ignored
> }
> }



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