Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 81687 invoked from network); 9 May 2010 00:08:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 May 2010 00:08:56 -0000 Received: (qmail 32262 invoked by uid 500); 9 May 2010 00:08:56 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 32197 invoked by uid 500); 9 May 2010 00:08:55 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 32188 invoked by uid 99); 9 May 2010 00:08:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 00:08:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yanglang@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 00:08:48 +0000 Received: by wyi11 with SMTP id 11so1609285wyi.36 for ; Sat, 08 May 2010 17:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=bDfS7YZNId4EtfUNFX2YQZ+5xKlKQa7Q/+azfuPyu9g=; b=ovHPX0K3xpyfV6B1Ga0C0VzDTc32E2u21MthQAKoRyMeVReeA5l1Mp4e39jb56djj5 TKxnKB+7km1HFm+op6YmWdxIfZdxEuQfIGHIQHJvlfLnGxYv0YPsSwbu+Ar7T0rwzgaL TU4IjaWiGNkd6y/Cv7jh7h6eUV3Vik/DSL36g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RnWQFU39BcPQkFkYxLvxYBlpw8jVe/MaqVF/nopPb8lBZvh23z6rM2lKQowd/tq4FS PhT7eS3OR/1BkXvxw++JXBrP3TKlUaiD8+aoOEo71efHno+ccUKG7QMCqEMYgYT3RKde UFgEmMmMezSz+WAHlkTEYD9aemYcUdxGRLhSI= MIME-Version: 1.0 Received: by 10.216.90.145 with SMTP id e17mr1227666wef.106.1273363705833; Sat, 08 May 2010 17:08:25 -0700 (PDT) Received: by 10.216.10.137 with HTTP; Sat, 8 May 2010 17:08:25 -0700 (PDT) Date: Sat, 8 May 2010 20:08:25 -0400 Message-ID: Subject: Blank constructor throwing NotImplementedException From: Lang Yang To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=0016e6dab0635b27ab04861e1722 --0016e6dab0635b27ab04861e1722 Content-Type: text/plain; charset=UTF-8 Hello guys, I have seen some constructors throws a NotImplementedExpcetion when JDOC says these constructors are supposed to just construct a blank class. I thought for this case we just leave that constructor blank is good enough. Is there any specific reason why we are throwing NotImplementedExceptions? e.g.: protected ImageInputStreamSpi() - Constructs a blank ImageInputStreamSpi. It is up to the subclass to initialize instance variables and/or override method implementations in order to provide working versions of all methods. [0] protected ImageInputStreamSpi() throws NotImplementedException { // TODO: implement throw new NotImplementedException(); } Thanks, Lang [0] - http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/spi/ImageInputStreamSpi.html#ImageInputStreamSpi() --0016e6dab0635b27ab04861e1722--