1. Replace catch(Exception) by catch(RuntimeException) when only RuntimeException can be throws
2. Make sure that inner classes does not use the same name for parameters as parent scope, see http://domino.watson.ibm.com/syssftpr/JavaTech/Jikes.nsf/Named/SunQuery8
git-svn-id: svn://10.0.0.236/trunk@110914 18797224-902f-48f8-a5cc-f745e15eee43
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.
b) rename the old nsIComponentManager to nsIComponentManagerObsolete.
c) fixes callers which use to access the nsIComponentManager for component
registration functionality. These callers will temporary use the
nsIComponentManagerObsolete interface.
d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()
e) Perserves the old NS_GetGlobalComponentManager(). Note the cast usage.
r/sr = rpotts@netscape.comalecf@netscape.combrendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup
Bug #58981 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@110703 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Javier Pedemonte (pedemont@us.ibm.com) for the patch.
Bug #58981 r=cls
git-svn-id: svn://10.0.0.236/trunk@110499 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Nick Blievers <nickb@adacel.com.au> for the patch.
Bug #79562 r=brendan sr=cls
git-svn-id: svn://10.0.0.236/trunk@109990 18797224-902f-48f8-a5cc-f745e15eee43
I'm the maintainer of JPackage project rhino package (see
jpackage.sourceforge.net). I just found two problems for building it (version
1.52 from cvs):
- the property src.debugger is badly initialised in toolsrc/build.xml. See
patch attached for correction. Moreover, this was a real pain to make offline
building possible. I guess it's a licensing problem that prevents you
including those files in rhino sources ?
- the produced javadoc has an empty (0 sized) package-list file. Have you got
any idea why ?
-- Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
git-svn-id: svn://10.0.0.236/trunk@109835 18797224-902f-48f8-a5cc-f745e15eee43
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as
git-svn-id: svn://10.0.0.236/trunk@109748 18797224-902f-48f8-a5cc-f745e15eee43
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as
git-svn-id: svn://10.0.0.236/trunk@109694 18797224-902f-48f8-a5cc-f745e15eee43
In our browser we need to support scripts that use as an identifier name future reserved keywords such as interface. The scripts are rather old and perfectly legal under previous revisions of EcmaScript which does not included the list of almost every Java keyword to the future reserve.
To support this I added an option to query Context.hasFeature for FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER:
/**
* if hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER) returns true,
* treat future reserved keyword (see Ecma-262, section 7.5.3) as ordinary
* identifiers but warn about this usage
*/
public static final int FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER = 3;
The corresponding code in TokenStream checks for it and issues just a warning when this feature is enabled.
I also think that it would be better not to return RESERVED as a token from TokenStream.getToken but report the specific syntax error immediately because it is very unclear from the error message:
js> x.interface = 1
js: "<stdin>", line 1: uncaught JavaScript exception: SyntaxError: missing name after . operator (<stdin>; line 1)
js: x.interface = 1
js: ..........^
what exactly went wrong. I can send a patch later for that.
Regards, Igor
git-svn-id: svn://10.0.0.236/trunk@108845 18797224-902f-48f8-a5cc-f745e15eee43