Commit Graph

36993 Commits

Author SHA1 Message Date
norris%netscape.com
1d174dde8d Fix the following problem:
Subject:
        ImporterTopLevel problem
   Date:
        Fri, 6 Aug 1999 15:42:50 -0400
   From:
        "\"Howard\" Xuhua Lin" <howard@softcom.com>
     To:
        "Norris Boyd" <norris@netscape.com>
    CC:
        "Andrew Wason" <aw@softcom.com>




Hi, The following script will cause an EvaluatorException: Ambiguous import: [JavaPackage java.awt.JButton] and [JavaPackage
java.awt.Packages.javax.swing.JButton] in the js shell:

js>importPackage(java.awt);
js>importPackage(Packages.javax.swing);
js>new JButton();.

The current JS shell will not print this exception message, even though the comment says "// Already printed message, so just fall
through". I add System.err.println(ee.getMessage()); for this exception.

The problem is that in NativeJavaPackage.get(String, Scriptable) method, if a ClassNotFoundException is caught, a
NativeJavaPackage object is created and passed back to ImporterTopLevel.get Method. So in ImporterTopLevel.get method, object v
is always not NOT_FOUND and the ambiguous exception will be thrown. Object v is supposed to be a Class object but it actually is
a Package object.

The fix can be either (1) in NativeJavaPackage.get(String, Scriptable) method, if a ClassNotFoundException is caught, return a
NOT_FOUND object (you may still create a Package object) or (2) in ImporterTopLevel.get method, make sure the returned object
from NativeJavaPackage.get method is of NativeJavaClass type.

Howard
1999-08-12 16:59:29 +00:00
bienvenu%netscape.com
609ea25753 address collecter, not part of build 1999-08-12 14:37:26 +00:00
gagan%netscape.com
d418cf6936 Added the Param field for a URL. Fixes the bugs being seen by semicolons in URL. 1999-08-12 10:01:33 +00:00
gagan%netscape.com
1581724dae Fixed bunch of M9 bugs for Necko. 1999-08-12 09:59:24 +00:00
waterson%netscape.com
6ed0233553 Bug 11667. Fix unsigned/signed mismatch. 1999-08-12 08:49:44 +00:00
waterson%netscape.com
8888847e25 Bug 11484. Be defensive if a null pointer is passed as the doc title in SetPageTitle(). 1999-08-12 08:46:35 +00:00
waterson%netscape.com
508e0405a4 Bug 11539. Display 'title' as NC:Description instead of NC:Source. 1999-08-12 08:44:02 +00:00
waterson%netscape.com
b9100ed5ba Bug 11539. Only display description field until column pushers & resizing work. 1999-08-12 08:43:27 +00:00
rjc%netscape.com
c73c7adf6a Fix bug # 11626: get context menus in the bookmarks window working again. Approval: chofmann. Review: Hyatt 1999-08-12 08:30:02 +00:00
briano%netscape.com
21978c2e4a Automated update 1999-08-12 08:10:50 +00:00
briano%netscape.com
12603cb184 Finally found a 'fix' for the OSF/1 ld's problem with multiply defined
symbols when building a .so.  It creates the .so successfully, but returns
a non-zero exit status, so the build fails.  This change ignores the return
status.  This is OSF/1 (DU) specific.
1999-08-12 08:09:37 +00:00
sfraser%netscape.com
2e090c3f1f One final try to get the header output paths right. 1999-08-12 06:07:12 +00:00
beard%netscape.com
dcc1d19467 fixed access paths to point to the one, true, dist.. 1999-08-12 04:29:35 +00:00
beard%netscape.com
055c169759 hoo boy, fixing breakage, adding new build rules, rah! 1999-08-12 03:57:56 +00:00
beard%netscape.com
00faf8c29f First Checked In. 1999-08-12 03:57:06 +00:00
beard%netscape.com
42a52923bd to fix build breakage, removed nsIJVMManager.h 1999-08-12 03:33:16 +00:00
talisman%anamorphic.com
72cc0b8b49 Updates for JavaMail 1.1.x. 1999-08-12 03:28:00 +00:00
bienvenu%netscape.com
2914171e94 fix build bustage 1999-08-12 03:10:30 +00:00
shawnp%earthling.net
bc9d9f8e96 Additional files needed to get viewer working with qt port. Only basic
functionality is present - enough to get it working.
1999-08-12 02:56:33 +00:00
talisman%anamorphic.com
7629c30980 Fixed display bustage. 1999-08-12 02:43:29 +00:00
shawnp%earthling.net
c28c984e19 Initial version of qt timer files. Did just enough work to get it to work. 1999-08-12 02:33:43 +00:00
shawnp%earthling.net
a8a62d2f24 Initial version of qt widget files. I've put quite a lot of work into most
of the classes, but there are still some major gaping holes in
functionality.
1999-08-12 02:30:02 +00:00
briano%netscape.com
955529a7f3 Unix native compilers don't like it when files don't end with a newline. 1999-08-12 01:58:19 +00:00
edburns%acm.org
76832ecb8b This fix is for http://bugzilla.mozilla.org/show_bug.cgi?id=5429.
This fix enables the Tasks->Java Console menu item to show the Java
Console provided by the JRE plugin if it is installed.

It also exposes nsIJVMManager as a full XPIDL citizen, with the progid
component://netscape/oji/jvm-mgr.  see modules/oji/public/nsIJVMManager.idl
for the methods that can be called.

Thanks to Trevor, John Bandauer, Brendan Eich and Robert Yang.
1999-08-12 01:56:18 +00:00
briano%netscape.com
5c04b254d7 Fixed the missing newline bug that was upsetting HP. 1999-08-12 01:53:17 +00:00
shawnp%earthling.net
f951f1f9e3 Initial version of Qt gfx files. Still pretty raw in most places. 1999-08-12 01:52:44 +00:00
shawnp%earthling.net
45b641de24 Initial checkin of Qt gfx files. Still pretty raw in a lot of places. 1999-08-12 01:51:25 +00:00
waterson%netscape.com
65c3c63e2c Bug 11575. Null check after pulling URI out of a resource. a=chofmann 1999-08-12 01:16:13 +00:00
valeski%netscape.com
0091d03cb8 added pipe2 stuff back in after patrick got the pipe2 stuff linking in w/ mac 1999-08-12 01:01:55 +00:00
rhp%netscape.com
5456c12038 Fix for attachment display - approved by: chofmann@netscape.com 1999-08-12 00:50:59 +00:00
beard%netscape.com
6561d93e1c added nsPipe2.cpp, nsSegmentedBuffer.cpp. 1999-08-12 00:12:37 +00:00
beard%netscape.com
a057fe57ef added NS_NewPipe* exports for nsPipe.cpp & nsPipe2.cpp 1999-08-12 00:11:54 +00:00
slamm%netscape.com
3c090283a0 Fix chrome urls as last part of fix for bug #10341. a=chofmann. Does not affect the build. 1999-08-12 00:10:32 +00:00
valeski%netscape.com
a652772b48 removed nsPipe2 api usage 1999-08-11 23:58:35 +00:00
danm%netscape.com
bd95ca26db fix WeakReference exporting for Windows. a:chofmann r:scc. 1999-08-11 23:48:08 +00:00
cyeh%netscape.com
c083f5134f adding manifest-win file in preparation for installers. not used or built
anywhere. reviewed cyeh, approved cyeh.
1999-08-11 23:34:26 +00:00
nisheeth%netscape.com
684c74e9b5 Fix for bug 11483. Scripts were not getting loaded on XML pages. 1999-08-11 23:24:59 +00:00
slamm%netscape.com
2e4ea59699 Add some gifs back that were not moved during the great DTD reshuffle. now #11679 was #10341. 1999-08-11 22:51:44 +00:00
slamm%netscape.com
5999da5d02 Move bookmarks resources into their own directory (bug #10341) and use chrome urls to reference them. a=chofmann 1999-08-11 22:27:57 +00:00
valeski%netscape.com
4c6ccdee2b added files: mozilla/netwerk/protocol/ftp/public/nsIFTPContext.idl 1999-08-11 22:27:12 +00:00
valeski%netscape.com
87e42a03b1 adding next rev of ftp protocol 1999-08-11 22:26:32 +00:00
briano%netscape.com
7f09e481ea Fixed the typos in 2 filenames. Hint: Upper and lower case matter on Unix.... 1999-08-11 22:06:10 +00:00
slamm%netscape.com
35db7ab0f0 Move bookmarks resources into their own directory (bug #10341). a=chofmann 1999-08-11 22:02:49 +00:00
slamm%netscape.com
cf70100b78 Replace 'resource:' urls with 'chrome:' urls (bug #10341). a=chofmann 1999-08-11 22:02:28 +00:00
slamm%netscape.com
99576937ac Use chrome url for sitemap.gif (bug #11640). a=choffman 1999-08-11 22:01:10 +00:00
briano%netscape.com
e63639f800 Removed the references to the 6 files that no longer exist. 1999-08-11 21:59:48 +00:00
rpotts%netscape.com
a806fec196 Bug #11410. Changed NS_ASSERTION to checkc the *correct* variable. Someday I'll grow a brain and become really dangerous... 1999-08-11 21:15:49 +00:00
scc%netscape.com
21816522ed export all symbols; added prefslib 1999-08-11 20:59:12 +00:00
morse%netscape.com
f3b7202a58 fix bug 11647 1999-08-11 20:31:27 +00:00
akkana%netscape.com
bbc7bb9b8a Fix editor stopper 11616. a=leaf@mozilla.org 1999-08-11 19:20:34 +00:00