Closed Bug 12187 Opened 25 years ago Closed 25 years ago

xpidl accepts native attributes on [scriptable] interfaces

Categories

(Core :: XPCOM, enhancement, P3)

x86
Linux
enhancement

Tracking

()

VERIFIED DUPLICATE of bug 11454

People

(Reporter: mang, Assigned: mike+mozilla)

Details

The following compiles without warning or error.  The Get and Set methods are
generated.

Having a native type as an attribute on a [scriptable] interface should be an
error, just as having native types in a [scriptable] method is an error.

--
[ptr] native nsNativeType(short);

[scriptable, uuid(7CB5B7A1-07D7-11d3-BDE2-000064657374)]
interface nsISample : nsISupports
{
[...]
    attribute nsNativeType bogus;
};
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 11454 ***
Status: RESOLVED → VERIFIED
verified covered by bug 11454.
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
You need to log in before you can comment on or make changes to this bug.