From 512d3d7fbb017683f5829fe448e110a8c755f0c8 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 20 Jul 1998 21:13:15 +0000 Subject: [PATCH] Update to correctly decode classes that rely on multiple inheritance. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2859 72102866-910b-0410-8b05-ffd578937521 --- Source/Decoder.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Decoder.m b/Source/Decoder.m index af1f60c2f..609f1e131 100644 --- a/Source/Decoder.m +++ b/Source/Decoder.m @@ -399,6 +399,10 @@ static id dummyObject; ala decodeClassName:intoClassName: here. */ ret = objc_lookup_class (class_name); + /* Ensure that the [+initialize] method has been called for the + class by calling one of it's methods */ + if (ret != Nil) + ret = [ret class]; if (ret == Nil) [NSException raise: NSGenericException format: @"Couldn't find class `%s'", class_name];