You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/05/15 07:33:41 UTC

[GitHub] [netbeans] pryshrm opened a new issue, #4119: Incorrect output in console

pryshrm opened a new issue, #4119:
URL: https://github.com/apache/netbeans/issues/4119

   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   I have a simple test program and when I run it in Netbeans IDE 13 using JDK 17, the output window shows the following output.
   Code:
   ```
   public class TestClass {
       public static void main(String[] args) {
           double amount = 200_00.00;
           NumberFormat nf2 = NumberFormat.getCompactNumberInstance(Locale.US, Style.SHORT);
           String s = nf2.format(amount);
           System.out.println("yyy"+s);
           System.out.println(s);  //where is the output for this???
           System.out.println("xxx"+s);
       }
   }
   ```
   
   Netbeans Output:
   ```
   yyy20K
   xxx20K
   ```
   
   When I run the same program on command line using the same JDK, I get the following output:
   Output on command prompt:
   ```
   yyy20K
   20K
   xxx20K
   ```
   
   
   As you can see, the middle line is missing in the output shown by Netbeans.
   
   Product Version: Apache NetBeans IDE 13
   Java: 17.0.3; Java HotSpot(TM) 64-Bit Server VM 17.0.3+8-LTS-111
   Runtime: Java(TM) SE Runtime Environment 17.0.3+8-LTS-111
   System: Windows 10 version 10.0 running on amd64; Cp1252; en_IN (nb)
   User directory: C:\Users\CEO\AppData\Roaming\NetBeans\13
   Cache directory: C:\Users\PRYSHRM\AppData\Local\NetBeans\Cache\13
   
   
   
   ### How to reproduce
   
   Run this code and see the output:
   ```
   public class TestClass {
       public static void main(String[] args) {
           double amount = 200_00.00;
           NumberFormat nf2 = NumberFormat.getCompactNumberInstance(Locale.US, Style.SHORT);
           String s = nf2.format(amount);
           System.out.println("yyy"+s);
           System.out.println(s);  //where is the output for this???
           System.out.println("xxx"+s);
       }
   }
   ```
   
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Windows 
   
   ### JDK
   
   17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] neilcsmith-net commented on issue #4119: Incorrect output in console

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4119:
URL: https://github.com/apache/netbeans/issues/4119#issuecomment-1140980286

   Closing as duplicate of #4017 - thanks for reporting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] neilcsmith-net closed issue #4119: Incorrect output in console

Posted by GitBox <gi...@apache.org>.
neilcsmith-net closed issue #4119: Incorrect output in console
URL: https://github.com/apache/netbeans/issues/4119


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] duoduobingbing commented on issue #4119: Incorrect output in console

Posted by GitBox <gi...@apache.org>.
duoduobingbing commented on issue #4119:
URL: https://github.com/apache/netbeans/issues/4119#issuecomment-1133197324

   Can confirm. The line `System.out.println(s);` is not printed.
   
   Combination: Windows 10 + Maven Project + Eclipse Adoptium JDK 17.0.3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists