Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28076

Re: AppletContext.getApplets bug

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: AppletContext.getApplets bug
Date 2014-04-13 17:17 -0700
Organization Canadian Mind Products
Message-ID <jo9mk995ond8vvg6sdm2nn9j9gks5egbh3@4ax.com> (permalink)
References <h7ekk9pkobomg2vfi9kik12mpthvgsj5pa@4ax.com> <6kqkk91s6fjg449puqci6mf68i0v8js6dr@4ax.com> <lie4hk$806$1@speranza.aioe.org> <lieg85$uep$1@dont-email.me>

Show all headers | View raw


On Sun, 13 Apr 2014 13:03:49 -0400, Jeff Higgins
<jeff@invalid.invalid> wrote, quoted or indirectly quoted someone who
said :

>
>> What was the error again?
>+1

AppletContex.getApplets returns an enumeration of all the Applets
running on the page, including yourself.  

It works correctly when there are 1 to 11 instances of the Applet.

When you have 12+, the enumeration contains only 1 element, namely
yourself.  You can't see any of the other Applets.

Firefox, Opera, IE all behave this way.  Chrome works for n=12. I have
not done experiments for larger numbers.

I think what is happening is 12 or above, Firefox gives each Applet
not only a separate thread, but a separate JVM. Another symptom is the
appearance of multiple consoles at 12+

Either a browser should put all Applets of the same class in the same
JVM, or give you a way to force that.

Oracle, if they do anything, may just add a warning the documentation
for getApplets that it does not work for values of n+, where n is
determined by experiment.

Bugs like this give much more grief that my own bugs.  I expect the
system stuff to work as advertised, and keep looking for something
wrong it my own code, and only as a last resort start exploring the
possibility Oracle erred.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
"Don't worry about people stealing an idea; if it's original, you'll
 have to shove it down their throats." 
~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

AppletContext.getApplets Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 00:17 -0700
  Re: AppletContext.getApplets Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 01:09 -0700
  Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 03:52 -0700
    Re: AppletContext.getApplets bug Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-13 21:47 +0800
      Re: AppletContext.getApplets bug Jeff Higgins <jeff@invalid.invalid> - 2014-04-13 13:03 -0400
        Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 17:17 -0700
          Re: AppletContext.getApplets bug Jeff Higgins <jeff@invalid.invalid> - 2014-04-13 21:09 -0400
            Re: AppletContext.getApplets bug Jeff Higgins <jeff@invalid.invalid> - 2014-04-13 21:17 -0400
              Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-14 01:43 -0700
      Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 16:58 -0700
      Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 17:08 -0700
      Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-14 14:45 -0700
    Re: AppletContext.getApplets bug Roedy Green <see_website@mindprod.com.invalid> - 2014-04-13 19:13 -0700
      The End is Nigh Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2014-04-16 06:45 +0800

csiph-web