The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Re:(i==47) will be checked anywhere.

Posted by Suradera on November 21, 2000 at 3:09 AM

Hi, James Wang

Thanks for your reply. I've tried what's your suggestion,
it's done checked i==47 in output.txt, but output to screen
still skip checking i==47.

Also tried in Forte for Java and JBuilder3.5 environment,
it's been checked i==47 in Forte, but fail in JBuilder. Maybe,
have to go deep into Garbage Collection mechanism.

However, thank again for your suggestion.

Suradera

> You can try
> java Garbage>output.txt

> in output.txt ,you can find (i==47) has been checked.

>
> > Hi you all,

> > I've tried inserting a line in 'Garbage.java' and the result is strange, why's that?

> > ...
> > public void finalize() {
> > // inserting this code here
> > System.out.println("int i = " + i );
> > if(!gcrun) {
> > ...

> > The result is very strange, sometimes the program never end. (seems if(i==47) never been checked)
> > Thanks in advance for your clarification.
> > B.Rgds,
> > Suradera




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us