Microsoft KB Archive/253137

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

Article ID: 253137

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



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.



Steps to Reproduce Behavior
  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. } } }                     Uncomment the line of code in the second catch block. IntelliSense does not reveal the method or member variable prompts for "err" as expected.

