Closed
Bug 12684
Opened 26 years ago
Closed 26 years ago
xpidl allows [retval] when return type already specified
Categories
(Core :: XPCOM, enhancement, P4)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mang, Assigned: mike+mozilla)
Details
Attachments
(2 files)
xpidl input:
--
interface foo {
short bar([retval] out long myRetval);
};
--
Output from xpt_dump:
--
Interface Directory:
- ::foo (00000000-0000-0000-0000-000000000000):
Flags:
Scriptable: FALSE
Methods:
uint32 bar(out retval int32, out retval int16);
--
xpt_dump reports that both parameters are marked as being a "retval". Haven't
seen what happens at runtime.
Reporter | ||
Comment 1•26 years ago
|
||
Also, xpidl allows multiple params to be marked with [retval]:
--
interface dual_retval {
void foo([retval] out short bar, [retval] out short baz);
};
--
xpt_dump output:
--
[..]
Methods:
uint32 foo(out retval int16, out retval int16);
[..]
--
Reporter | ||
Comment 2•26 years ago
|
||
Reporter | ||
Comment 3•26 years ago
|
||
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•26 years ago
|
||
Marking as assigned. This'd be another check in
xpidl_idl:verify_method_declaration
Updated•26 years ago
|
Assignee: mccabe → shaver
Status: ASSIGNED → NEW
Comment 5•26 years ago
|
||
Fix sent to mccabe for review.
Assignee | ||
Updated•26 years ago
|
Assignee: shaver → mccabe
Severity: normal → enhancement
OS: Linux → All
Priority: P3 → P4
Assignee | ||
Comment 6•26 years ago
|
||
Mostly fixed. Thanks, shaver.
Detection of this error only occurs in typelib mode, which I worry people might
find annoying, as it'll only occur late in the build after they think their idl
is groovey.
Reassigning to me and lowering priority.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•26 years ago
|
||
Fixed with recent checkin. Thanks, Shaver.
You need to log in
before you can comment on or make changes to this bug.
Description
•