[ 
https://issues.jenkins-ci.org/browse/JENKINS-12482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158717#comment-158717
 ] 

Stefan Thurnherr commented on JENKINS-12482:
--------------------------------------------

Can confirm that it's a Java 7 issue. Here's a java7 vs. java6 comparison:

{noformat}
//Java 6 (1.6.0_30-b12)
[WARNING] /absolute/path/to/source/File.java:[1185,66] [unchecked] unchecked 
conversion
found   : com.company.util.db.BasicTableInfo
required: com.company.util.db.TableInfo<com.company.fps.storable.Storable>
[WARNING] /absolute/path/to/source/File.java:[729,21] [unchecked] unchecked 
call to addElement(E) as a member of the raw type java.util.Vector
[WARNING] /absolute/path/to/source/File.java:[858,24] [unchecked] unchecked 
call to put(K,V) as a member of the raw type java.util.HashMap
[WARNING] /absolute/path/to/source/File.java:[281,66] [unchecked] unchecked 
conversion
found   : java.util.Map
required: java.util.Map<java.lang.String,byte[]>
{noformat}

{noformat}
//Java 7 (1.7.0_02-b13)
/absolute/path/to/source/File.java:[1185,66] [unchecked] unchecked conversion
[WARNING]     BasicTableInfo
/absolute/path/to/source/File.java:[729,21] [unchecked] unchecked call to 
addElement(E) as a member of the raw type Vector
[WARNING] 
    E extends Object declared in class Vector
/absolute/path/to/source/File.java:[858,24] [unchecked] unchecked call to 
put(K,V) as a member of the raw type HashMap
[WARNING] 
    K extends Object declared in class HashMap
    V extends Object declared in class HashMap
/absolute/path/to/source/File.java:[281,66] [unchecked] unchecked conversion
[WARNING]     Map
{noformat}
                
> Warnings not detected when file path does not appear after [WARNING]
> --------------------------------------------------------------------
>
>                 Key: JENKINS-12482
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12482
>             Project: Jenkins
>          Issue Type: Bug
>          Components: warnings
>    Affects Versions: current
>         Environment: ubuntu, java 1.7.0_02, tomcat7, jenkins 1.447, warnings 
> plugin v3.26, maven-compiler-plugin v2.3.2
>            Reporter: Stefan Thurnherr
>            Assignee: Ulli Hafner
>
> When compiling a Java project using the javac compiler, most of the warnings 
> in my console log appear as follows:
> {noformat}
> [WARNING]     BasicTableInfo
> /absolute/path/to/source/File.java:[143,66] [unchecked] unchecked conversion
> {noformat}
> and are thus not picked up by the warnings plugin.
> When there is no additional token before the source file path, such as in the 
> following warning:
> {noformat}
> [WARNING] /absolute/path/to/source/File.java:[181,69] [unchecked] unchecked 
> cast
> {noformat}
> then the warning is correctly picked up by the warnings plugin.
> Btw: Coloring in the console log has the same "bug": when the path appears as 
> the first token (after [WARNING]), then the path and the next token (warning 
> category) are highlighted in dark-yellow. When there is an additional token 
> before the path, only that additional token is highlighted in dark-yellow 
> (not the path and subsequent tokens).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to