[nbusers] Re: Problems with debugger on NB 7.2

  • From: Gregg Wonderly < >
  • To:
  • Cc: Edson Richter < >
  • Subject: [nbusers] Re: Problems with debugger on NB 7.2
  • Date: Wed, 29 Aug 2012 16:53:03 -0500

On 8/29/2012 2:58 PM, Edson Richter wrote:
Has anyone seen this weird behavior on NB 7.2? Two variables in same address
space with different contents?

Relevant code:

Telefone tel = telefoneList.get(5);
tel.setNumero("");
tel.setArea("");


where Telefone is a serializable class, and telefoneList is a Vector.

After that, I suppose the "list" and "tel" must have same content.

Can you show the source code for tel.setNumero() and tel.setArea()? What threads are accessing what values? Is the "read" of tel fields coming from a different thread that the set/write is?

It sounds like a visibility issue where there is no "happens-before" relationship between the reader and the writer, but I'm just guessing.

Are the setters and getters using "synchronized" in their declaration or 
otherwise?

Gregg



[nbusers] Problems with debugger on NB 7.2

Edson Richter 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Gregg Wonderly 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Edson Richter 08/29/2012

[nbusers] Re: Problems with debugger on NB 7.2

Edson Richter 08/29/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close