mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 17:22:04 +00:00
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
d51c86ce41
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 > |
||
---|---|---|
apache/gzip/src | ||
build | ||
calendar | ||
caps | ||
cck | ||
chrome/src | ||
cmd | ||
config | ||
content | ||
db | ||
dbm | ||
directory | ||
docshell/base | ||
dom | ||
editor | ||
ef | ||
expat | ||
extensions | ||
gconfig | ||
gfx | ||
grendel | ||
htmlparser | ||
include | ||
intl | ||
java | ||
jpeg | ||
js | ||
js2/semantics | ||
l10n | ||
layout | ||
lib | ||
mailnews | ||
modules | ||
msgsdk | ||
nav-java | ||
netwerk | ||
network | ||
nsprpub | ||
nunet | ||
parser | ||
plugin/oji/MRJ | ||
privacy | ||
profile | ||
rdf | ||
README | ||
silentdl | ||
string/obsolete | ||
suite | ||
sun-java | ||
timer | ||
tools | ||
tripledb | ||
uriloader | ||
view | ||
wallet | ||
webshell | ||
webtools | ||
widget | ||
xpcom | ||
xpfc | ||
xpfe | ||
xpinstall | ||
.cvsignore | ||
aclocal.m4 | ||
allmakefiles.sh | ||
client.mak | ||
client.mk | ||
configure | ||
configure.in | ||
LEGAL | ||
LICENSE | ||
Makefile.in | ||
makefile.win | ||
nglayout.mac | ||
nglayout.mk | ||
trex.mak | ||
trex.mk |