lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3877) Lucene should not call System.out.println
Date Wed, 21 Mar 2012 22:36:45 GMT


Dawid Weiss commented on LUCENE-3877:

I don't like PMD that much either, I'm just saying it seems to have it. If I were to choose
though, I'd use aspectj rather than asm-based code. It just seems cleaner to me.
public aspect NoSysOuts {
    before(): within(org.apache.lucene..*) && 
              get(static PrintStream System.*) {
        throw new RuntimeException("Attempted sysout/syserr/sysin access.");
You don't even need to run it, just weave with verbose output and see if the aspect matched
> Lucene should not call System.out.println
> -----------------------------------------
>                 Key: LUCENE-3877
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 3.6, 4.0
>         Attachments:,,
> We seem to have accumulated a few random sops...
> Eg, (oal.util.fst) and, at least.
> Can we somehow detect (eg, have a test failure) if we accidentally leave errant System.out.println's
(leftover from debugging)...?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message