ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21386] New: - Project.fireMessageLoggedEvent susceptable to incorrect state
Date Mon, 07 Jul 2003 23:45:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21386>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21386

Project.fireMessageLoggedEvent susceptable to incorrect state

           Summary: Project.fireMessageLoggedEvent susceptable to incorrect
                    state
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: Darin_Swanson@us.ibm.com


Project.fireMessageLoggedEvent sets the loggingMessage field to track whether 
BuildListeners are attempting to access System.err or System.out.

The problem is that if any build listener throws an exception during message 
logging, the Project is left in an incorrect state. Any subsequent attempts to 
log a message results in the "... - infinite loop terminated" error 
message...even though no infinite loop is occurring.

We are hitting this with Eclipse's Ant integration. One of the build listeners 
we use facilitate the user to cancelling a build. This build listener throws 
an "operation cancelled exception" which is handled etc. but we can do no 
further logging.

I would propose that a try/finally block be introduced so that it is ensured 
that loggingMessage is set to false on exit of the method.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message