IPDL: type checker fails to error when mentioning a protocol whose spec wasn't included

RESOLVED FIXED

Status

()

RESOLVED FIXED
10 years ago
9 years ago

People

(Reporter: cjones, Assigned: cjones)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Basically for this case,

  //----foo.ipdl
  include protocol "bar.ipdl";
  protocol foo { manages bar; ... }

  //----bar.ipdl
  protocol bar { manager foo; }

the IPDL compiler doesn't barf when type checking bar.ipdl, as it should: bar.ipdl hasn't included "foo.ipdl", so the compiler has no idea what the "foo" identifier is.

This bug arises from the way IPDL caches parsing and type checking results.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
I should add that this bug only appeared when IPDL was run in "multi-shot" mode, i.e.

  $ ipdlc foo.ipdl bar.ipdl

and only when the files were ordered as above.

Comment 3

10 years ago
No bug of fix referenced as the fix - or anything at all actually indicating that it has been fixed.
Resolution: FIXED → WORKSFORME

Comment 4

10 years ago
My mistake - I somehow missed comment 1.
Resolution: WORKSFORME → FIXED
You need to log in before you can comment on or make changes to this bug.