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 d055865e6d Fix problem found by Andrew Wason <aw@softcom.com>:
Subject:
        reflection and illegal package access
   Date:
        Wed, 04 Aug 1999 21:56:20 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com (Norris Boyd)
    CC:
        Howard Lin <howard@softcom.com>




If you run Rhino under JDK1.2 with a security manager:

java -Djava.security.manager=java.lang.SecurityManager
org.mozilla.javascript.tools.shell.Main

Then reflection fails for objects that are in a restricted access package
(e.g. sun.*).  Rhino is reflecting based on the dynamic type of the object
instead of the declared static return type.

In this example, createImage is declared to return java.awt.Image, but it
returns sun.awt.image.OffScreenImage.  Attempting to reflect this class
results in a java.security.AccessControlException for
java.lang.RuntimePermission accessClassInPackage.sun.awt.image.

Here is the script.  You will need to type it in because you won't be able
to load it from a file due to the security manager.

var f = new java.awt.Frame();
f.setVisible(true);
var i = f.createImage(10,10);
1999-08-05 16:49:20 +00:00
apache/gzip/src
build Move entities into dtd files. 1999-08-04 23:40:49 +00:00
calendar
caps Added a newline to the EOF to fix the Unix native compiler builds. 1999-08-02 06:40:28 +00:00
cck *** empty log message *** 1999-08-04 23:58:33 +00:00
chrome/src Bug 9799. Implement nsIRDFRemoteDataSource so that datastore can be flushed to disk. 1999-08-05 04:33:41 +00:00
cmd Adding context menu library to the interface stubs 1999-05-14 21:58:33 +00:00
config Add support for building more than one toolkit at once. Currently #ifdefed 1999-08-05 05:12:56 +00:00
content Changed frame construction code to use frame manager when modifying frame 1999-08-05 03:09:22 +00:00
db fix memory leak of writer 1999-08-01 17:01:32 +00:00
dbm removing LITENESS 1999-07-30 23:54:36 +00:00
directory Merge from LDAPJavaSDK_40beta_19990802_BRANCH. Some files removed. Some added 1999-08-04 02:03:56 +00:00
docshell/base Add global history. 1999-08-05 05:14:45 +00:00
dom Deleted all the trailing ^M (carriage return) characters from every single line, to fix the non-gcc Unix builds (almost _all_ of the port builds broke because of this collection of Windoze droppings). 1999-08-05 00:15:42 +00:00
editor fixbuild/ typos for sford 1999-08-05 14:21:51 +00:00
ef
expat Newline at end 1999-07-17 00:34:16 +00:00
extensions Make these components link in with -lxp, so that the "app" doesnt have too. 1999-08-05 13:38:57 +00:00
gconfig
gfx Fix warnings 1999-08-05 06:04:28 +00:00
grendel Java 2 'javadoc' generated documentation for Grendel packages. Initial checkin. (Jeff) 1999-08-02 05:27:45 +00:00
htmlparser Disabling RGESS_DEBUG which I had accidentally 1999-08-03 21:08:36 +00:00
include warning cleanup 1999-07-30 23:59:53 +00:00
intl Added progid/cid to idl and interface change. 1999-08-04 21:36:36 +00:00
java Made changes to allow building on jdk1.1.7 or jdk1.2. Basically, accounted 1999-07-30 22:00:20 +00:00
jpeg Change requested by tgl. pnunn 1999-08-03 01:46:25 +00:00
js Fix problem found by Andrew Wason <aw@softcom.com>: 1999-08-05 16:49:20 +00:00
js2/semantics Updated for recent semantic engine changes. Changed the meaning of (?= to match Perl. 1999-07-27 01:05:59 +00:00
l10n
layout Added NULL pointer check for frame manager in DeletingFrameSubtree() 1999-08-05 03:30:09 +00:00
lib warning cleanup 1999-07-30 23:59:53 +00:00
mailnews remove taunting of QA 1999-08-05 14:55:13 +00:00
modules makefile.win got checked in accidentally. I'm not ready to export stopwatch.h yet, so, I'm backing my changes out. 1999-08-05 05:13:54 +00:00
msgsdk
nav-java removing software update references. 1999-05-06 04:18:44 +00:00
netwerk fixing mac build bustage. brade verified the changes in her mac build. I switched from com ptrs to regular pointers as the com pointer abuse wasn't appreciated on the mac 1999-08-05 16:17:22 +00:00
network Trivial elimination of some pointless macros as discussed in bug 8568. Approved by leaf@mozilla.org. 1999-07-29 01:18:12 +00:00
nsprpub Enable specification of extra linker options and libraries from command line. 1999-07-31 17:19:19 +00:00
nunet
parser Disabling RGESS_DEBUG which I had accidentally 1999-08-03 21:08:36 +00:00
plugin/oji/MRJ Updated build instructions. Will get pushed out to the website eventually. 1999-08-03 21:29:49 +00:00
privacy
profile changing location.replace to location.href, as a fix for bug 11261 1999-08-05 04:28:43 +00:00
rdf Bug 9799. Implement nsIRDFRemoteDataSource so that datastore can be flushed to disk. 1999-08-05 04:33:41 +00:00
README
silentdl switch to faster string search API 1999-07-19 03:29:56 +00:00
string/obsolete Fixing ToNewUnicode(). Checking in for rickg. 1999-07-28 21:43:11 +00:00
suite Fix history window. 1999-08-05 05:11:42 +00:00
sun-java Cleaned up a bunch of old (unused?) crap. 1999-06-04 21:45:17 +00:00
timer/src Remove files accidentally checked in. 1999-07-22 18:08:05 +00:00
tools Added rickg's tool for finding dereference errors 1999-08-04 19:44:15 +00:00
tripledb Allow a way to finely control the order of query results. 1999-07-12 22:09:23 +00:00
uriloader api change to nsIWebShell and nsIDocumentLoaderObserver. I've replaced all the old method delarations with the new versions. We now pass 'nsresult' types into the On*() methods instead of PRInt32. The PRInt32 arg type was causing data loss. 1999-08-05 01:28:30 +00:00
view display list elements, ShowDisplayList() method. 1999-08-02 03:16:55 +00:00
wallet
webshell Dont link -lxp, its not needed. 1999-08-05 13:46:52 +00:00
webtools Oops; removed debugging output. 1999-08-05 16:43:00 +00:00
widget Fixes bug# 11300, when mouse capture is on the wrong window is being set into 1999-08-05 14:56:21 +00:00
xpcom Fixed typo. 1999-08-05 12:58:04 +00:00
xpfc
xpfe Dont link -lxp, its not needed. 1999-08-05 13:46:52 +00:00
xpinstall Changed incorrect ReleaseService() to UnregisterService() 1999-08-03 00:24:26 +00:00
.cvsignore
aclocal.m4
allmakefiles.sh Add sidebar component directory. 1999-08-03 22:35:39 +00:00
client.mak split nspr build out as a separate target to save build time 1999-08-02 20:37:46 +00:00
client.mk Fix webconfig target. 1999-05-04 19:54:24 +00:00
configure Automated update 1999-08-05 05:15:16 +00:00
configure.in Add support for building more than one toolkit at once. Currently #ifdefed 1999-08-05 05:12:56 +00:00
LEGAL Add Y2K disclaimer. 1999-07-06 23:00:05 +00:00
LICENSE
Makefile.in Removed lib/pwcac to build only with Non-Necko. 1999-08-02 23:59:56 +00:00
makefile.win Removed lib/pwcac to build only with Non-Necko. 1999-08-02 23:59:56 +00:00
nglayout.mac
nglayout.mk
trex.mak
trex.mk