BUG: IntelliSense does not function within a try-catch block in Visual J++ (253137)



The information in this article applies to:

  • Microsoft Visual J++ 6.0

This article was previously published under Q253137

SYMPTOMS

IntelliSense may not function within a try-catch block in Visual J++ 6.0.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an empty project in Visual J++, and paste the following sample code:
    import java.io.*;
    
    public class Class1 {
      public static void main (String[] args) {
        try {
          BufferedWriter aStream = new BufferedWriter(new FileWriter("C:\\Temp.txt"));
        } catch(FileNotFoundException err) {
          err.printStackTrace();
        } catch (Exception err) {
          //err.	//IntelliSense does not show methods/properties of err.
        }
      }
    }
    					
  2. Uncomment the line of code in the second catch block. IntelliSense does not reveal the method or member variable prompts for "err" as expected.

REFERENCES

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbBug kbide kbnofix KB253137