|
|
Sponsor |
Nice/src/gnu/bytecode Type.java,1.14,1.15 ArrayType.java,1.5,1.6 Access.jav: msg#00109lang.nice.cvs
Update of /cvsroot/nice/Nice/src/gnu/bytecode In directory sc8-pr-cvs1:/tmp/cvs-serv18702/src/gnu/bytecode Modified Files: Type.java ArrayType.java Access.java Log Message: Take into account that clone is a public method for arrays. Index: Type.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Type.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Type.java 24 Jun 2003 20:07:38 -0000 1.14 --- Type.java 25 Aug 2003 22:30:00 -0000 1.15 *************** *** 198,201 **** --- 198,203 ---- public final boolean isVoid () { return size == 0; } + public boolean isArray () { return false; } + /** Returns the primitive type corresponding to a signature character. * @return a primitive type, or null if there is no such type. */ Index: ArrayType.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/ArrayType.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ArrayType.java 19 Nov 2002 16:28:01 -0000 1.5 --- ArrayType.java 25 Aug 2003 22:30:00 -0000 1.6 *************** *** 24,27 **** --- 24,29 ---- } + public final boolean isArray () { return true; } + public Type getImplementationType() { Index: Access.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Access.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Access.java 25 Aug 2003 18:09:10 -0000 1.3 --- Access.java 25 Aug 2003 22:30:00 -0000 1.4 *************** *** 61,64 **** --- 61,69 ---- return c == target; + // clone is the only method overriden for arrays, where it is public. + // (JLS-2 10.7) + if (m.getName().equals("clone") && receiver.isArray()) + return true; + // PROTECTED return c.getPackageName().equals(target.getPackageName()) ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Nice/web .htaccess,1.10,1.11, bonniot |
|---|---|
| Next by Date: | Nice/regtest/basic arrays.nice,1.21,1.22, bonniot |
| Previous by Thread: | Nice/web .htaccess,1.10,1.11, bonniot |
| Next by Thread: | Nice/regtest/basic arrays.nice,1.21,1.22, bonniot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|