Closed
Bug 761621
Opened 13 years ago
Closed 13 years ago
interfaces inheriting a builtinclass-interface should be builtinclass too
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(2 files)
8.94 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
8.76 KB,
patch
|
Details | Diff | Splinter Review |
.
Assignee | ||
Comment 1•13 years ago
|
||
Hmm, there is
+ IDL_tree_property_get(
+ IDL_INTERFACE(iter).ident, "builtinclass")) {
+ IDL_tree_error(interface_tree,
+ "%s is not [builtinclass] but extends "
+ "[builtinclass] interface %s",
+ IDL_IDENT(IDL_INTERFACE(interface_tree).ident).str,
+ IDL_IDENT(IDL_INTERFACE(iter).ident).str);
+ return FALSE;
But I don't get that error with the patch for bug 761613
Assignee | ||
Comment 2•13 years ago
|
||
Hmm, we don't have that error anymore in the python implementation.
Assignee | ||
Comment 3•13 years ago
|
||
Either do builtinclass implicitly, or error if inheriting builtinclass.
Yeah, I think implicit is bad. We should make it an error if a non-builtin inherits a builtin. That's what I was trying to implement, but maybe I went wrong somewhere. Possibly the problem is that it's not implemented correctly in the python XPIDL parser that we recently switched to.
Assignee | ||
Comment 5•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=308af20708c2
Compiles at least locally.
Assignee: nobody → bugs
Attachment #630264 -
Flags: review?(khuey)
Comment on attachment 630264 [details] [diff] [review]
patch
Review of attachment 630264 [details] [diff] [review]:
-----------------------------------------------------------------
I'm just assuming you got all the interfaces. The xpidl.py changes are fine.
Attachment #630264 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•13 years ago
|
Summary: interfaces inheriting a builtinclass-interface should be implicitly builtinclass → interfaces inheriting a builtinclass-interface should be builtinclass too
Assignee | ||
Comment 7•13 years ago
|
||
This needs the patch for Bug 762007
Assignee | ||
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•