This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254294

Summary: JavaScript Native Interface
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Html4jAssignee: Jaroslav Tulach <jtulach>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Few lines of code that can wrap a JS object by a Java interface

Description Jaroslav Tulach 2015-08-12 06:49:09 UTC
JNA (https://github.com/twall/jna) is very effective way for Java to encapsulate access to C or other native code. Similar approach could be used for encapsulating Java access to JavaScript via HTML/Java APIs.
Comment 1 Jaroslav Tulach 2015-08-12 07:16:12 UTC
Created attachment 155281 [details]
Few lines of code that can wrap a JS object by a Java interface