Dear Rafael and Dev Team,

Thanks for your reply.

On internet I found  that legacy code: *is a type of code which is used in
the software currently, but there are new and better technology that can
replace it in the future. *Please let me know if my interpretation is
correct.

Also,  can you please elaborate more, why it is a bad programming practice?
and where I can find more information about it.


Thank You

On Tue, Feb 23, 2016 at 9:17 PM, Rafael Weingärtner <
rafaelweingart...@gmail.com> wrote:

> Dear Sangeeta,
>
> Those examples you provided are a bad programming practice (in my opinion).
> They are legacy code, and we are trying to fix them whenever we uncover
> one.
>
> On Tue, Feb 23, 2016 at 11:11 AM, sangeeta lal <sangeeta.6...@gmail.com>
> wrote:
>
> > Dear Dev Team,
> >
> >
> > I am Sangeeta (PhD) scholar from India. I am working in the area  of
> mining
> > software repositories and my aim is to study logging practices of
> > developers. I am using Apache CloudStack project for my study.
> > I notice that when a try block consist of following three types of
> > statements, their corresponding catch block is not logged.
> >
> > *Type 1 : * {
> >   org.apache.axiom.soap.SOAPEnvelope
> resultEnv=resultContext.getEnvelope();
> >   java.lang.Object
> >
> >
> object=fromOM(resultEnv.getBody().getFirstElement(),com.amazon.ec2.client.AmazonEC2Stub.DescribePlacementGroupsResponse.class,getEnvelopeNamespaces(resultEnv));
> >
> >
> >
> callback.receiveResultdescribePlacementGroups((com.amazon.ec2.client.AmazonEC2Stub.DescribePlacementGroupsResponse)object);
> > }
> >
> > *Type 2:* {
> >   return
> >
> >
> param.getOMElement(com.amazon.ec2.CreateNetworkInterfaceResponse.MY_QNAME,org.apache.axiom.om.OMAbstractFactory.getOMFactory());
> > }
> >
> >
> > *Type 3:* {
> >
> >
> >
> isReaderMTOMAware=java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
> > }
> >
> >
> > Can any of you please tell me why is it happening?
> >
> > Thank You So Much!!
> >
> > --
> > Regards...
> > Sangeeta
> > Assistant Professor
> > CSE Department @JIIT Noida
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Regards...
Sangeeta
Assistant Professor
CSE Department @JIIT Noida

Reply via email to