Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Platform: All, OS: All
Description
I have one job that compiles the Java source 3 different times, one of them
after instrumentation with clover. Each deprecation warning is counted three times.
Extracts from the console output are pasted below for one warning. While the
warning generating with clover might be more difficult to attach to the original
code and I could probably tweak the build process to remove them, the first and
third warnings are identical and could be merged.
The clover warning also is not able to link to the source code in the detail tab
as the source path starts with /tmp/clover[...].
Let me know if you need more data from the log.
Xavier
[javac]
/home/hudson/workspace/jobs/PMD-snapshot/workspace/pmd/src/net/sourceforge/pmd/ant/PMDTask.java:248:
warning: [deprecation] render(java.io.Writer,net.sourceforge.pmd.Report) in
net.sourceforge.pmd.renderers.Renderer has been deprecated
[javac] public void render(Writer writer, Report r) {}
[javac] ^
...
[javac] /tmp/clover60419.tmp/net/sourceforge/pmd/ant/PMDTask.java:248:
warning: [deprecation] render(java.io.Writer,net.sourceforge.pmd.Report) in
net.sourceforge.pmd.renderers.Renderer has been deprecated
[javac] public void render(Writer writer, Report r)
{__CLR2_3_2rm9rm9fknlwssd.R.E[35916]++;}
[javac] ^
...
[javac]
/home/hudson/workspace/jobs/PMD-snapshot/workspace/pmd/src/net/sourceforge/pmd/ant/PMDTask.java:248:
warning: [deprecation] render(java.io.Writer,net.sourceforge.pmd.Report) in
net.sourceforge.pmd.renderers.Renderer has been deprecated
[javac] public void render(Writer writer, Report r) {}
[javac] ^
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 132389 ] | JNJira + In-Review [ 201373 ] |
Code changed in hudson
User: : drulli
Path:
trunk/hudson/plugins/checkstyle/src/main/java/hudson/plugins/checkstyle/util/ParserResult.java
trunk/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/util/ParserResult.java
trunk/hudson/plugins/pmd/src/main/java/hudson/plugins/pmd/util/ParserResult.java
trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/util/ParserResult.java
trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/util/ParserResult.java
trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/all.txt
http://fisheye4.cenqua.com/changelog/hudson/?cs=11995
Log:
[FIXED JENKINS-2316] Use a set rather than a list to collect the warnings.