Affects Version/s: 4.0-ALPHA
Fix Version/s: 4.0-BETA
LUCENE-3877 Greg Bowyer has some asm.jar-based code to inspe ct class files for System.out/err class. I wanted to modify this code to run it in a jar-linter task on ant, so all compiled class files are parsed and method/ctor calls to e.g. new String(byte) without charset are forbidden. We would add a list of method signatures that we dont want to have (new FileReader(File), commons.IOUtils.loadFileToString()) and this linter will throw BuildException after static inspection, if any class file in Lucene/Solr (including line numbers) uses any method call.
Greg's code would be changed to use visitMethodInsn visitor, very easy.
|Attachment||LUCENE-4199.patch [ 12535519 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Affects Version/s||4.0 [ 12314025 ]|
|Affects Version/s||4.0-ALPHA [ 12321879 ]|
|Fix Version/s||4.0 [ 12322456 ]|
|Fix Version/s||4.0-ALPHA [ 12314025 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|