Closed Bug 278133 Opened 20 years ago Closed 3 years ago

Implement 'array' param support

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jhpedemonte, Unassigned)

Details

Attachments

(1 file)

Currently, the parameter setup code in nsJavaWrapper and nsJavaXPTCStub just
prints a warning message and returns an error for 'array' parameters.  The
frozen interface nsIProperties has a method that uses an 'array' return value
(nsIProperties::getKeys()).
Work in progress patch for 'array' parameter support in nsJavaWrapper.cpp.
Comment on attachment 180488 [details] [diff] [review]
work in progress (diff -w) (checked in)

This patch was checked in a while back.

Arrays (and sized strings) are currently supported in nsJavaWrapper.cpp (that is, the Java->XPCOM direction), but not in nsJavaXPTCStub (XPCOM->Java direction).

Need to follow xpconnect: create an equivalent of the XPCConvert class, which centralizes all of the Java<->XPCOM parameter marshalling code.  This would greatly reduce complexity, and reduce some code duplication.
Attachment #180488 - Attachment description: work in progress (diff -w) → work in progress (diff -w) (checked in)
Assignee: jhpedemonte → nobody
QA Contact: avm
Product: Core → Core Graveyard

JavaXPCOM was removed in bug 648593.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: