Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
For this input log file:
<log>
First for Ant javac or pure javac
[javac] D:\path\to\my\Class.java:225: warning: [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated
[javac] oc.loadAvailable("roottest.xml", 0xFFF, 0xFFFF, new String[]
);
[javac] ^
Then for maven javac
[WARNING] D:\path\to\my\Class.java:[225,39] [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated
</log>
we expect the category to be 'Deprecation' but we get 'Deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[' instead.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Here is the sample log file For this input log file: <log> First for Ant javac or pure javac [javac] D:\path\to\my\Class.java:225: warning: [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated [javac] oc.loadAvailable("roottest.xml", 0xFFF, 0xFFFF, new String[]{"filter"}); [javac] ^ Then for maven javac [WARNING] D:\path\to\my\Class.java:[225,39] [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated </log> we expect the category to be 'Deprecation' but we get 'Deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[' instead. |
For this input log file: <log> First for Ant javac or pure javac [javac] D:\path\to\my\Class.java:225: warning: [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated [javac] oc.loadAvailable("roottest.xml", 0xFFF, 0xFFFF, new String[]{"filter"}); [javac] ^ Then for maven javac [WARNING] D:\path\to\my\Class.java:[225,39] [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated </log> we expect the category to be 'Deprecation' but we get 'Deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[' instead. |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 135960 ] | JNJira + In-Review [ 203772 ] |
Code changed in hudson
User: : vtintillier
Path:
trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/AntJavacParser.java
trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/JavacParser.java
trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/AntJavacParserTest.java
trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/JavacParserTest.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
trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/issue5868.txt
http://jenkins-ci.org/commit/28447
Log:
[FIXED JENKINS-5868] Fix javac parsers to handle array type in deprecated method