Crash when processing file that has a property declared as Boolean, but a method accepting a BOOL parameter #207

Open
CDRussell opened this Issue Apr 5, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@CDRussell

Appledoc crashes (not gracefully) when you have a class which has a property of type 'Boolean'
@property (nonatomic, assign) Boolean b;

But the init method accepts a BOOL

  • (id)initWithToggle:(BOOL)b;

Appledoc works again when both types are changed to BOOL, or both types are changed to Boolean, but a mix and match makes Appledoc die.

Note, the compiler is happy enough with this. I wouldn't necessary advocate its use, but appledoc shouldn't crash out on this usage.

@CDRussell

This comment has been minimized.

Show comment Hide comment
@CDRussell

CDRussell Apr 5, 2012

I should also mention I witnessed this even when no documentation was present on the method signature.

I should also mention I witnessed this even when no documentation was present on the method signature.

@tomaz

This comment has been minimized.

Show comment Hide comment
@tomaz

tomaz Apr 6, 2012

Owner

Hm, this one is weird, appledoc doesn't depend on any specific types, it just takes whatever is given. Will take a look when I get to it.

Owner

tomaz commented Apr 6, 2012

Hm, this one is weird, appledoc doesn't depend on any specific types, it just takes whatever is given. Will take a look when I get to it.

@CDRussell

This comment has been minimized.

Show comment Hide comment
@CDRussell

CDRussell Apr 6, 2012

declared as Boolean, but a method accepting a BOOL parameter (#207)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

No worries, it is a bit of an odd case, only discovered by accident.

Sent from my Windows Phone
From: tomaz
Sent: 06/04/2012 16:35
To: Craig Russell
Subject: Re: [appledoc] Crash when processing file that has a property
declared as Boolean, but a method accepting a BOOL parameter (#207)
Hm, this one is weird, appledoc doesn't depend on any specific types,
it just takes whatever is given. Will take a look when I get to it.


Reply to this email directly or view it on GitHub:
#207 (comment)

declared as Boolean, but a method accepting a BOOL parameter (#207)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

No worries, it is a bit of an odd case, only discovered by accident.

Sent from my Windows Phone
From: tomaz
Sent: 06/04/2012 16:35
To: Craig Russell
Subject: Re: [appledoc] Crash when processing file that has a property
declared as Boolean, but a method accepting a BOOL parameter (#207)
Hm, this one is weird, appledoc doesn't depend on any specific types,
it just takes whatever is given. Will take a look when I get to it.


Reply to this email directly or view it on GitHub:
#207 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment