[Bluej-discuss] Inspector not updating?

Davin McCall davmac at bluej.org
Tue Sep 11 05:07:51 BST 2007


It would be a bug. However it works for me.

Just to clarify, an inspector observes an object, not the value of any 
particular expression. Perhaps in your case adding an object to the 
array involves creating a new (larger) array, and copying the contents 
of the original array into it along with the new value? In that case the 
original array is not modified.

Otherwise, file a bug report, and please include the code you use to add 
objects into the array.

Thanks,

Davin


Hedley Finger wrote:
> Before I log this as a bug, can anyone tell me whether this is 
> expected behaviour?
>
> The Inspector was open to use the components of an object array.  I 
> repeatedly executed a method to add objects to the array, each 
> returning a true to indicate that the object had been stored, but the 
> Inspector did not update.  Executing another method to print out all 
> the objects stored in the array worked as expected.  The Inspector 
> had to be closed and reopended to refresh its view with all the 
> objects stored in the array.
>
> Is this intended or should the Inspector always update dynamically to 
> reflect the mutation of variables by methods?  (BlueJ 2.2.0, JRE 1.6.0_02.)
>
> Regards,
> Hedley
>
>
> --
> Hedley Stewart Finger
> 28 Regent Street   Camberwell VIC 3124   Australia
> Tel. +61 3 9809 1229   Mobile +61 412 461 558,
> E-mail <mailto:hfinger at handholding.com.au>
>
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
>   



More information about the bluej-discuss mailing list