[ 
https://issues.apache.org/jira/browse/NETBEANS-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gili updated NETBEANS-423:
--------------------------
    Comment: was deleted

(was: In the original bug report, Martin Entlicher wrote:
{quote}
There are two problems:
1) Inability to evaluate classes that were not loaded in the VM yet and this is 
described in bug #168949.

2) Inability to create brand new classes during evaluation
   E.g. evaluate "new Runnable() { public void run() { ...}}".

The second case would be necessary when evaluating a lambda expression.

For lambdas, there might be a solution...
{quote}
 

Having re-read the rest of the comments I now see that the first issue was 
fixed, but the second one was not. That is, this issue was probably never 
working in 8.2 and is a RFE. I'm going to update this issue accordingly. I 
still believe that this issue is high priority as adding watches for lambdas is 
a very common use-case nowadays.)

> Evaluation of lambdas and new classes fails: "Unsupported: can not create a 
> new class"
> --------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-423
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-423
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: debugger - Code
>         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
>
> This issue was originally reported and fixed by 
> [https://netbeans.org/bugzilla/show_bug.cgi?id=253248] in version 8.2 but I 
> can now reproduce it in the nightly builds.
> Here are the original repro steps:
>  # I place a breakpoint after this line of code: {{List<Lang> 
> responseForLanguages = new ArrayList<>(section.getLangs());}}
>  # I enter the following in the Variables tab: 
> {{responseForLanguages.stream().map(lang -> lang.getId())}}
>  # Netbeans responds {{Unsupported: can not create a new class}}



--
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