Closed Bug 349074 Opened 18 years ago Closed 18 years ago

Mac/Intel: GenerateJavaInterfaces doesn't write constants for ifaces with no parent

Categories

(Core Graveyard :: Java to XPCOM Bridge, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: jhpedemonte)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

The tool GenerateJavaInterfaces doesn't write constants for interfaces that have no parent, such as gfxIFormats and nsICache.  This is because TypeInfo::GetParentInfo() doesn't set |aParentConstCount| to zero when there is no parent.  On PPC, it seems that the variable was defaulting to zero anyway, so this problem never arose.  On Intel, the variable defaults to a random value, which causes problems.
Attached patch patchSplinter Review
Attachment #234306 - Flags: review?(benjamin)
Attachment #234306 - Flags: review?(benjamin) → review+
Checked into trunk. ->FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 234306 [details] [diff] [review]
patch

Asking for 1.8.1 branch approval.  This patch only affects XULRunner.
Attachment #234306 - Flags: approval1.8.1?
Comment on attachment 234306 [details] [diff] [review]
patch

a=beltzner on behalf of drivers, please land on MOZILLA_1_8_BRANCH and mark fixed1.8.1
Attachment #234306 - Flags: approval1.8.1? → approval1.8.1+
Checked in to MOZILLA_1_8_BRANCH.
Keywords: fixed1.8.1
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: