Closed Bug 327654 Opened 18 years ago Closed 18 years ago

nsIXMLHTTPRequest class not included in MozillaInterfaces.jar

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: jhpedemonte)

Details

(Keywords: fixed1.8.0.2, fixed1.8.1, Whiteboard: [nvn-dl])

Attachments

(1 file)

Someone noticed that nsIXMLHTTPRequest.class is not in MozillaInterfaces.jar from XULRunner 1.8.0.1, but is included in the one from the XULRunner trunk.

It looks like this is a result of the order in which directories are processed in the top level Makefile.  The 'extensions/java' dir is in tier_50, but the remaining extensions (such as xmlextras, to which nsIXMLHTTPRequest.idl belongs) are handled in tier_99.

This is somewhat better on the trunk, since many of the main extensions are now in tier_9 (before 'extensions/java'), but some extensions still come later.

The GenerateJavaInterfaces util uses nsInterfaceInfoManager to get all of the available interfaces, and it will only read from the available .xpt files.  So this step needs to come after all the IDL files have been processed.
Attached patch patchSplinter Review
This patch fixes it, but is more of a band-aid.  In the long run, we should probably move the interface generation and any other jars that depend on it to their own sub-directory.
Attachment #212516 - Flags: review?(benjamin)
Comment on attachment 212516 [details] [diff] [review]
patch

This sucks in general: we should be hooking into xpidl and the XPIDLSRCS targets in rules.mk and generating on the fly.
Attachment #212516 - Flags: review?(benjamin) → review+
That still won't fix this, since at the end, we need to compile the Java classes.  So we would still need to do something after all of the IDL files have been parsed.
Comment on attachment 212516 [details] [diff] [review]
patch

We should get this in for XULRunner 1.8.0.2.
Attachment #212516 - Flags: approval1.8.0.2?
Comment on attachment 212516 [details] [diff] [review]
patch

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #212516 - Flags: approval1.8.0.2? → approval1.8.0.2+
Checked in to trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [nvn-dl]
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: