Hi all, a surprising lot of emails have been sent about that matter. It seems that we all agree on that throwing *something* would be better than what we have currently. The attached class is a summary of what as far I understood from the emails most people here wanted.
Personally, I had preferred some standardised information about the JDK version that demands for the missing feature, but I didn't get the impression that many of you support that idea. Is there anybody who can't live with the attached proposal? Cheers, Andy. -- aicas GmbH Haid-und-Neu-Straße 18 * 76131 Karlsruhe http://www.aicas.com Tel: +49-721-663 968-24; Fax: +49-721-663 968-94
/* NotYetImplementedError.java -- Error signaling not yet implemented methods Copyright (C) 2003 Free Software Foundation This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package gnu.classpath; /** * This Exception is used to signal that a particular method has not * been implemented yet. The use of a specific exception throught the * complete source code will help to localize and implement missing * functionality.<p> * Usage: * <code><pre> * public notYetImplementeMethod() * { * throw new gnu.classpath.NotYetImplementedError(); * } * </pre></code> * */ public class NotYetImplementedError extends Error { private static final String NYI = "This method has not yet been implemented in GNU Classpath.\n\n" + " The GNU Classpath project would appreciate receiving" + " an implementation for it.\n" + " If you intend to contribute, please take a look at" + " http://www.gnu.org/software/classpath/docs/hacking.html and" + " get in touch with other developers on [EMAIL PROTECTED]"; /** * Create new NotYetImplementedError. */ public NotYetImplementedError() { super(NYI); } /** * Create new NotYetImplementedError with detailed message. * @param message more detailed description. */ public NotYetImplementedError(String message) { super(message + "\n" + NYI); } }
_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath