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


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

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-14 01:43 -0700
Organization Canadian Mind Products
Message-ID <mg7nk9le9ebduio5p0i6d04gu12pjquv87@4ax.com> (permalink)
References (2 earlier) <lie4hk$806$1@speranza.aioe.org> <lieg85$uep$1@dont-email.me> <jo9mk995ond8vvg6sdm2nn9j9gks5egbh3@4ax.com> <lifcme$3gh$1@dont-email.me> <lifd66$7kp$1@dont-email.me>

Show all headers | View raw


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

>Oops. So there is no error.
>Only behavior you did not expect.

jdk1.8.0/docs/api/java/applet/AppletContext.html#getApplets--

Enumeration<Applet> getApplets()

Finds all the applets in the document represented by this applet
context.
Returns:
an enumeration of all applets in the document represented by this
applet context.

It does not return ALL the Applets, only some of them, and sometimes
NONE of them but yourself. I consider that a bug.  Now a lawyer would
argue about the sleazoid "context" wording to excuse the behaviour.
The docs should at least warn you that it only works up to 11
instances. Oracle instead screws you around so they don't have to
admit a problem.

You test with 2 or 3 instances.  It works, so you assume it will work
for more.  IT DOES NOT. And the buggers refuse to warn you.  I have
wasted so much time on this that coud have been saved by adding one
sentence to the docs.
-- 
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