Project

General

Profile

Feature #4246

Emit static Java calls for non-native COM objects

Added by Hynek Cihlar almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
version_reported:
version_resolved:

History

#1 Updated by Hynek Cihlar almost 5 years ago

This issue was identified during work on #4121, see notes 709-723.

Currently when COM objects are converted as non-native COM objects (like PSTimer) all calls are emitted dynamically:

chCtrlFrameImageList.get().chain("ImageManager").chain("Icons").call("LoadBitmap", ComParameter.input(pcImagePath), ComParameter.input(ttimage.get().getIdentifier()), ComParameter.input(0));

The purpose of this issue is to emit static Java calls whenever the type of the com handle value is known. The type can be hinted using an ext-file for example. So the above example could be emitted as:

chCtrlFrameImageList.get().chain("ImageManager").getIcons().loadBitmap(pcImagePath, ttimage.get().getIdentifier(), 0);

Also available in: Atom PDF