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 257280 - tooltip text of values of variables of type Class aren't updated after change
Summary: tooltip text of values of variables of type Class aren't updated after change
Status: RESOLVED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-24 04:38 UTC by kalle1
Modified: 2016-08-18 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kalle1 2015-12-24 04:38:21 UTC
Steps to reproduce:

  1. create a new Maven project with a Java file with `main` method and the following content:

        package org.apache.storm.mavenproject1;
        
        import java.util.Arrays;
        import java.util.LinkedList;
        
        public class NewMain {
        
            public static void main(String[] args) {
                for(int i=0; i<100; i++) {
                    System.out.println(i);
                }
                for(Class<?> clazz : new LinkedList<>(Arrays.asList(String.class, Integer.class))) {
                    System.out.println(clazz);
                }
            }
        }
  2. set a breakpoint at `System.out.println(i);` and watch the tooltip text get updated at every invocation in the loop
  3. set a breakpoint at `System.out.println(clazz);` and watch the tooltip remain `java.lang.String` after continuing to the next step of the loop where it should be `java.lang.Integer`.
Comment 1 Martin Entlicher 2016-08-18 13:51:32 UTC
It works for me in the current dev build.
Are you sure that the tooltip was invoked again? Do Variables view shows the correct value?