BUG: Cannot Edit min/max Float Values in the Debugger

ID: Q156919

The information in this article applies to:

SYMPTOMS

When you change the value of a double or float variable in the Visual J++ debugger Watch window to a number beyond the data types absolute maximum or minimum value (or to NaN), the debugger puts 1.#INF0000000 (float variables) or 1.#IND00000 (double variables) in the Watch window edit control, which you can then no longer edit.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

The following code sample demonstrates the problem. When this code is compiled and run under the Visual J++ debugger, the variables dNaN, dInfinity, fNan, and fInfinity are read-only when viewed in the Watch window. You can view and change the values of dtest and ftest as expected:

public class test {

   public static void main(String args[])
   {
      double dNaN, dInfinity, dtest;
      dNaN = 0.0/0.0;
      dInfinity = 1e308*10;
      dtest=10;

      float fNaN, fInfinity, ftest;
      fNaN = 0.0f/0.0f;
      fInfinity = 1e38f * 10;
      ftest=10;
   }
}

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/ 
   http://support.microsoft.com/support/java/ 

Keywords          : kbtool kbDebug kbide kbVJ 
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbbug

Last Reviewed: January 24, 1998