commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LOGGING-64) Wrong sample code in org/apache/commons/logging/package.html (using static and this.class)
Date Tue, 29 Dec 2009 16:32:29 GMT

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

Dennis Lundberg updated LOGGING-64:
-----------------------------------

    Fix Version/s: 1.0.4

> Wrong sample code in org/apache/commons/logging/package.html (using static and this.class)
> ------------------------------------------------------------------------------------------
>
>                 Key: LOGGING-64
>                 URL: https://issues.apache.org/jira/browse/LOGGING-64
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Thai Ha
>            Priority: Minor
>             Fix For: 1.0.4
>
>
> In the org/apache/commons/logging/package.html file, there is sample code:
> public class Foo {
>   static Log log = LogFactory.getLog(this.class);
>   ...
> }
> This code cannot be compiled because of using "static" and "this.class" in the 
> same statement. Should be change to Foo.class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message