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 249318

Summary: Better control of GC among mutually exchanged Java and JavaScript objects
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Html4jAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews
Priority: P1 Keywords: API_REVIEW_FAST
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jaroslav Tulach 2014-12-12 10:21:24 UTC
It is essential to allow Java object passed to JavaScript world via @JavaScriptBody[1] annotation to be garbaged collected once.

The goal of this issue is to track creation of TCK checks to verify the proper behavior and also enhance API when necessary to give API developers tighter control over the GC behavior.

[1] http://bits.netbeans.org/html+java/dev/net/java/html/js/JavaScriptBody.html
Comment 1 Jaroslav Tulach 2014-12-12 10:25:53 UTC
The proposed API extension "keepAlive" attribute can be seen here:
http://hg.netbeans.org/html4j/rev/2ee22312e414
Comment 2 Jaroslav Tulach 2014-12-19 10:57:45 UTC
Will be part of HTML/Java API revision 1.1.