[ 
https://issues.apache.org/jira/browse/BCEL-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb updated BCEL-261:
----------------------
    Attachment: select-init.diff

Patch select-init.diff copied from BCEL-195.

This performs as much initialisation as possible before allowing the partially 
constructed object to escape.

However, there is still a remote possibility that the object will behave in 
unexpected ways, so ideally the design issue needs to be addressed

> Select constructor allows partially constructed instance to escape
> ------------------------------------------------------------------
>
>                 Key: BCEL-261
>                 URL: https://issues.apache.org/jira/browse/BCEL-261
>             Project: Commons BCEL
>          Issue Type: Bug
>            Reporter: Sebb
>         Attachments: select-init.diff
>
>
> The main Select constructor allows its instance to be accessed by other code 
> before the constructor has completed.
> This causes problems such as BCEL-195 because the behaviour of a partially 
> constructed object is not well defined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to