Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
a very weird problem from Rhino js shell
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peng Li  
View profile  
 More options Oct 25, 4:14 am
Newsgroups: mozilla.dev.tech.js-engine.rhino
From: Peng Li <lipeng...@gmail.com>
Date: Sun, 25 Oct 2009 01:14:53 -0700
Local: Sun, Oct 25 2009 4:14 am
Subject: a very weird problem from Rhino js shell
HI

When I use Rhino JS shell to execute the following code,

        Main m = new Main();  // rhino js shell main function
        String argsServer[] = {"interpreterRun.js",
"addTags_coordinatorScript.js"};
        m.main(argsServer);  *// 1*
        System.out.println("----------------------------------");
        Main m2 = new Main();
        String argsServer2[] = {"interpreterRun.js",
"addTags_coordinatorScript.js"};
        m.main(argsServer);  *// 2*

the execution result  for 1 is totally correct
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF
----------------------------------

the execution result  for 2 is wrong because everything has been executed
twice!
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF

if I call m.main(argsServer) 3 times, the execution result is as  following
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF
s_checkTagsWF
s_checkIsExistingWF
s_storeTagsDBWF

Can anyone give me some clues about why this happens? Are there any contexts
which I should clean before I call the js shell main function again?

Cheers
Peng


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google