Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
norris%netscape.com d51c86ce41 Patches from Kurt Westerfeld for JavaScript property access to JavaBeans.
Subject:
        Re: [Fwd: [Bug 13658] Changed - Rhino: null pointer exception on class with duplicate field/method]
   Date:
        Mon, 13 Sep 1999 20:57:32 -0400
   From:
        "Kurt Westerfeld" <kurt@westerfeld.com>
     To:
        "Norris Boyd" <norris@netscape.com>




I do have a patch for this, but it is intermixed with some other changes
that I have implemented for the get/set on Java instances (per my LC3
proposal).  The bug requires changes that are a little involved actually;
basically it seems that when getting the default value for a "field and
methods" (which combines the same-named entities), the prototype of the
parent scope is deref-ed, and the parent scope is null.  Hence, the scope
must be passed into the the cloned field and method values.

Also, the NativeJavaClass implementation passed "false" for isStatic on the
constructor of the FieldAndMethods Hashtable, which results in classes
having instance methods.  Bad.  I haven't filed a bug on that yet.
Additionally, I fixed a couple other NullPointerException nigglies thrown in
when exceptions are propagated in the same area.  Finally, when getting the
default value for the field, it is helpful to convert a Scriptable to string
when that is requested (as when typing in the console).

I am attaching the changed files.  The LC3++ code can be removed if you
want, which I can do for you but it will take a little longer.  What is your
preference?

-----Original Message-----
From: Norris Boyd <norris@netscape.com>
To: Kurt Westerfeld <kurt@westerfeld.com>
Date: Monday, September 13, 1999 4:54 PM
Subject: [Fwd: [Bug 13658] Changed - Rhino: null pointer exception on class
with duplicate field/method]


>Kurt,
>
>Is this the bug that your patch fixes?
>
>Thanks,
>Norris
>
1999-09-24 20:41:43 +00:00
apache/gzip/src
build Add data.mcp and dataIDL.mcp to buildlist for bug#13697 and #8649. Reviewed by warren, approved by chofmann. 1999-09-24 00:47:30 +00:00
calendar
caps Bug #14815 --> fix some ref counting problems between nsJSPrincipal and nsCodebasePrincipal. nsCodeBasePrinciapl 1999-09-24 06:18:55 +00:00
cck removed product name references; fixed WinNt widget display bugs 1999-09-24 18:59:51 +00:00
chrome/src
cmd
config Turn on (for real this time) stripping of uneeded symbols from 1999-09-22 09:54:00 +00:00
content Fix mac build bustage. 1999-09-24 20:39:26 +00:00
db fix several warnings. we only need to declare this a friend once. 1999-09-22 08:17:46 +00:00
dbm Add memmove to autoconf tests. 1999-09-18 02:55:39 +00:00
directory Changed JAVACLASSPATH 1999-09-15 20:27:10 +00:00
docshell/base Use NSPR logging rather than printf's for stopwatch output. 1999-09-24 08:57:36 +00:00
dom remove references to cmd/macfe in the access paths. 1999-09-24 05:56:50 +00:00
editor Fixed M11 bugs 14720 and 10666 (a=chofmann), bug 11097 (a=leaf). All approved by buster (Steve Clark) 1999-09-24 00:25:01 +00:00
ef
expat Fixing build warning. 1999-09-20 21:35:50 +00:00
extensions backing out Ben Goodger's viewer due to bug 14079 1999-09-22 03:36:19 +00:00
gconfig
gfx turn off the very-slow-in-worst-cases ATSUI fallback 1999-09-22 06:22:43 +00:00
grendel
htmlparser Use NSPR logging rather than printf's for stopwatch output. 1999-09-24 08:57:36 +00:00
include
intl QNX-specific fix. 1999-09-23 22:08:49 +00:00
java Removed hack for jdk 1999-09-24 04:12:09 +00:00
jpeg
js Patches from Kurt Westerfeld for JavaScript property access to JavaBeans. 1999-09-24 20:41:43 +00:00
js2/semantics
l10n
layout Refixed bug #10496 - a=choffman, r=troy 1999-09-24 17:23:33 +00:00
lib First Checked In. 1999-09-20 22:12:35 +00:00
mailnews Need to populate personal addressbook 1999-09-24 17:38:49 +00:00
modules a=chofmann, all changes are within an ifdef and are not being built by default 1999-09-24 19:30:54 +00:00
msgsdk
nav-java
netwerk Change target directory for xpt file. For bug#13697. Reviewed by Warren, approved by chofmann. 1999-09-24 00:46:00 +00:00
network General cleanup. 1999-09-17 22:12:46 +00:00
nsprpub Bugzilla bug #14603: simple fix for OpenVMS contributed by Colin Blake 1999-09-24 01:55:12 +00:00
nunet
parser Use NSPR logging rather than printf's for stopwatch output. 1999-09-24 08:57:36 +00:00
plugin/oji/MRJ Took out the debug panel which appears whenever System.out messages are 1999-09-23 20:36:16 +00:00
privacy
profile fix for #14604. pop migration was broken on mac. my code to migrate 4.x imap mail filters on the mac should only be run when we used pop in 4.x 1999-09-22 20:01:20 +00:00
rdf Fix mac build bustage. 1999-09-24 20:39:26 +00:00
README
silentdl General cleanup. 1999-09-15 22:13:45 +00:00
string/obsolete Fix memmove() stuff. 1999-09-20 06:11:36 +00:00
suite Adding single quotes so that pref-appearance.xul gets loaded properly (14663). a=leaf, r=akkana 1999-09-24 20:15:49 +00:00
sun-java General cleanup. 1999-09-15 22:29:43 +00:00
timer
tools revised browser tests to work with seamonkey M11: 1) closed open sidebar. 2) worked around broken menus by using all-keyboard method for loading URIs. 3) added bDebug and bGrippyOpen variables. bDebug should always be false for build smoketests 1999-09-17 17:57:18 +00:00
tripledb
uriloader bug #14457. Getting the webcrawler working again for QA... 1999-09-22 22:58:29 +00:00
view bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy 1999-09-23 23:26:57 +00:00
wallet
webshell a=chofmann. If MOZ_PERF is defined in the environment, set up the RAPTOR_PERF_METRICS compiler define for windows. 1999-09-24 19:26:00 +00:00
webtools Patch by holger@holger.om.org (Holger Schurig) -- more fixups to put proper header on pages. 1999-09-24 19:15:51 +00:00
widget 14862: Send proper triple-click count on Linux. a=leaf/r=pavlov 1999-09-24 20:08:53 +00:00
xpcom Releasing servMgr if one is passed in to match NS_InitXPCOM() 1999-09-24 06:26:17 +00:00
xpfc
xpfe Adding single quotes so that pref-appearance.xul gets loaded properly (14663). a=leaf, r=akkana 1999-09-24 20:15:49 +00:00
xpinstall Fixing XPInstall UNIX bustage: bug 14504 1999-09-23 19:17:27 +00:00
.cvsignore
aclocal.m4
allmakefiles.sh add editor/txmgr/idl 1999-09-21 22:28:08 +00:00
client.mak
client.mk Added the missing semicolon. 1999-09-22 06:32:45 +00:00
configure Automated update 1999-09-22 10:01:17 +00:00
configure.in Turn on (for real this time) stripping of uneeded symbols from 1999-09-22 09:54:00 +00:00
LEGAL
LICENSE
Makefile.in
makefile.win don't build xplib.lib anymore 1999-09-21 22:24:36 +00:00
nglayout.mac
nglayout.mk
trex.mak
trex.mk