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 - Better control of GC among mutually exchanged Java and JavaScript objects
Summary: Better control of GC among mutually exchanged Java and JavaScript objects
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2014-12-12 10:21 UTC by Jaroslav Tulach
Modified: 2014-12-19 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.