BUG: Help topic for the java.io.PipedOutputStream class is not correct in Visual Studio .NET or in Visual Studio 2005

SYMPTOMS

You have a Visual J++ project with a class that uses the java.io.PipedOutputStream object. When you convert your Visual J++ project to a Visual C# .NET project by using the Java Language Conversion Assistant (JLCA), the java.io.PipedOutputStream object is not converted completely in the Visual C# .NET or in Visual C# 2005 code that is generated. When you open the Microsoft Visual Studio .NET or Microsoft Visual Studio 2005 Help topic that is listed in the UPGRADE_ISSUE comment, the java.io.PipedOutputStream class is listed as System.IO.StreamReader in the Help topic. This is not correct.

In Visual J++, this constructor creates a piped output stream that is not yet connected to a piped input stream.
In the .NET Framework, the equivalent is the System.IO.StreamReader class, but it has no empty constructor.
To correct this error

    Use StreamReader by specifying an input stream.

    RESOLUTION

    In the Microsoft .NET Framework, the equivalent of java.io.PipedOutputStream is System.IO.StreamWriter, not System.IO.StreamReader. The Help topic should read as follows:

    In Visual J++, this constructor creates a piped output stream that is not yet connected to a piped input stream.
    In the .NET Framework, the equivalent is the System.IO.StreamWriter class, but it has no empty constructor.
    To correct this error

      Use StreamWriter by specifying an input stream.

      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 the Behavior

      1. Start Visual J++ 6.0.
      2. On the File menu, click New Project.
      3. On the New tab, expand Visual J++ Projects, and then click Applications.
      4. In the right pane, click Console Application.
      5. Type MyVJTestApplication in the Name box, and then click Open.
      6. Replace the existing code with the following code for Class1.java:

      import java.io.*;
      public class Class1
      {
              public static void main (String[] args)
              {
                     // Create a new PipedOutputStream object.
                     PipedOutputStream myOutStream = new PipedOutputStream();
              }
      }
      7. On the File menu, click Save All.
      8. Quit Visual J++.
      9. Start Microsoft Visual Studio .NET 2003 or Microsoft Visual Studio 2005.
      10. On the File menu, point to Open, and then click Convert.
      11. Click Java Language Conversion Assistant under Available Converters, and then click OK.
      12. Follow the instructions in the JLCA Wizard to convert the Visual J++ project that you created.
      13. In the code editor for Class1.cs, right-click ms-help://MS.VSCC.2003/commoner/redir/redirect.htm? keyword=”jlca1000_javaioPipedOutputStreamPipedOutputStream, and then click Open URL.

      REFERENCES

      For more information about the java.io.PipedOutputStream class, visit the following Microsoft Developer Network (MSDN) Web site:

      http://msdn.microsoft.com/library/en-us/vjref98/html/java.io.pipedoutputstream.asp (http://msdn.microsoft.com/library/en-us/vjref98/html/java.io.pipedoutputstream.asp)


      APPLIES TO
        Microsoft Visual J++ 6.0 Standard Edition
          Microsoft Visual C# 2005 Express Edition
            Microsoft Visual C# .NET 2003 Standard Edition
              Microsoft Visual C# .NET 2002 Standard Edition
                Microsoft Visual J++ 1.0 Standard Edition

                You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

                AddThis Social Bookmark Button

                Leave a Reply

                *
                To prove that you're not a bot, enter this code
                Anti-Spam Image