jtulach commented on code in PR #9732:
URL: https://github.com/apache/netbeans/pull/9732#discussion_r4385860088


##########
java/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/Variable.java:
##########
@@ -61,5 +61,17 @@ public interface Variable {
      * @since 2.44
      */
     Object createMirrorObject();
-    
+
+    /** Creates an<em>immutable snapshot</em> of the variable.

Review Comment:
   This is an interesting comment, Toni! On one side, it is obvious, how the 
debugger behaves when it works with live heap. E.g. it only _snapshots the 
reference_, not the whole state of the object.
   
   On the other hand, this kind of snapshotting of the whole reference graph is 
exactly what I had done for [GraalVM Insight heap 
dumping](https://www.graalvm.org/latest/tools/graalvm-insight/manual/#heap-dumping).
 E.g. the request to really create _immutable snapshot_ isn't off, it could be 
done. Just probably not in this PR.
   
   > toFixed might remind people of JavaScript's Number.toFixed
   
   Let's try to call the method `asValue()` then! Done in 8075fdce6f
   
   >  debugger.jpda now overrides Variable.toFixed() from API 3.47, but its 
dependency on api.debugger.jpda is still 3.18. 
   
   How do you catch these omissions? Fixed in e7a606dbf5
   
   > The apichanges date is 28 Oct.
   
   I hope I'll get (your) approvals to merge on Oct 28. Is that too optimistic?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to