[ 
https://issues.apache.org/jira/browse/NETBEANS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433594#comment-16433594
 ] 

Gili edited comment on NETBEANS-421 at 4/11/18 9:13 AM:
--------------------------------------------------------

I am pretty certain this is a bug in Netbeans now. 
[https://stackoverflow.com/a/49770808/14731] contains an explanation of how to 
reproduce this in IntelliJ IDEA and Netbeans seems to have the same problem.
{quote}This happens when temporary objects created during the evaluation are 
collected before the end of the calculation. Usually it may happen when you 
suspend only one thread and other threads perform GC during this calculation. 
This will be better handled in 2018.2, sorry for inconvenience.
{quote}


was (Author: cowwoc):
I am pretty certain this is a bug in Netbeans now. 
https://stackoverflow.com/a/49770808/14731 contains an explanation of how to 
reproduce this in IntelliJ IDEA and Netbeans seems to have the same problem.

> Conditional breakpoints trigger when condition is false
> -------------------------------------------------------
>
>                 Key: NETBEANS-421
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-421
>             Project: NetBeans
>          Issue Type: Bug
>          Components: debugger - Java
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-219-on-20180221)
> Updates: Updates available
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>            Reporter: Gili
>            Priority: Major
>
> I set a conditional breakpoint which is triggering every time, even if the 
> condition is false. I opened the Debugger Console and saw:
> {code:java}
> Breakpoint hit at line 299 in class 
> com.holdmyspot.pyramid.binance.BinanceOrderStream$WebSocketListener by thread 
> WebSocketClient@1801942731-21.
> ***
> The object was collected.
> ***
> {code}
> I believe this is coming from 
> [https://github.com/apache/incubator-netbeans/blob/15bc442a91fa2be81488725b15c61386bf1d0b9b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JavaEvaluator.java#L168]
>  but it isn't clear what this means.
> If I enter the conditional expression in the "Variables" tab, it evaluates 
> correctly, so I don't think there is anything wrong with the expression.
> My conditional expression is 
> {{symbol.equals(CurrencyPair.fromString("BNB/USD"))}} where {{symbol}} is a 
> local String variable and {{CurrencyPair.fromString()}} is a static method.
> Please clarify what is going wrong, and improve the IDE so it explains to the 
> user what is wrong.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to