@@ -14,11 +14,13 @@ * file. */ #include "config.h" +#include #include + #include #import "OFXMLElement.h" #import "OFString.h" #import "OFArray.h" @@ -31,11 +33,10 @@ #import "OFXMLElementBuilder.h" #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFMalformedXMLException.h" -#import "OFNotImplementedException.h" #import "OFUnboundNamespaceException.h" #import "autorelease.h" #import "macros.h" @@ -123,14 +124,17 @@ return [[[self alloc] initWithFile: path] autorelease]; } - init { - Class c = [self class]; - [self release]; - @throw [OFNotImplementedException exceptionWithClass: c - selector: _cmd]; + @try { + [self doesNotRecognizeSelector: _cmd]; + abort(); + } @catch (id e) { + [self release]; + @throw e; + } } - initWithName: (OFString*)name_ { return [self initWithName: name_