Microsoft KB Archive/253137: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 67: Line 67:
   public static void main (String[] args) {
   public static void main (String[] args) {
     try {
     try {
       BufferedWriter aStream = new BufferedWriter(new FileWriter("C:\\Temp.txt"));
       BufferedWriter aStream = new BufferedWriter(new FileWriter("C:\\Temp.txt"));
     } catch(FileNotFoundException err) {
     } catch(FileNotFoundException err) {
       err.printStackTrace();
       err.printStackTrace();
Line 76: Line 76:
}
}
                     </pre></li>
                     </pre></li>
<li>Uncomment the line of code in the second catch block. IntelliSense does not reveal the method or member variable prompts for &quot;err&quot; as expected.</li></ol>
<li>Uncomment the line of code in the second catch block. IntelliSense does not reveal the method or member variable prompts for "err" as expected.</li></ol>





Latest revision as of 12:52, 21 July 2020

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.

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:

Keywords: kbbug kbnofix kbide KB253137