[jira] [Updated] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-30 Thread Vladimir Machat (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Machat updated NETBEANS-6115:
--
Affects Version/s: 12.5
   12.3
   12.4

> UTF-8 input is broken in Maven project
> --
>
> Key: NETBEANS-6115
> URL: https://issues.apache.org/jira/browse/NETBEANS-6115
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Maven
>Affects Versions: 12.3, 12.4, 12.5
> Environment: Linux Manjaro
> Netbeans 12.5 (but the same problem is in earlier versions too)
> Maven 3.8.2
> Java - tried with 8,14,17 
>  
>Reporter: Vladimir Machat
>Priority: Major
>
> Trying to get user input containing 'special characters' like ščřžýáíé 
> doesn't work in Maven project:
>  
> {code:java}
> Scanner sc = new Scanner(System.in, "UTF-8");
> System.out.println("Enter text: ");
> String text = sc.nextLine();
> System.out.println("You have entered: " + text);
>  
> {code}
>  
>  
> In Netbeans this code will fail printing what you entered if you enter 
> something like 'český, řeka etc...' but works ok with any input not 
> containing these characters
> Same code works in an Ant project without any problems.
> It also works on command line by copying and pasting the command from 
> Netbeans output window (and replacing the double quotes with single quotes). 
> Example:
> {code:java}
> cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
> JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven 
> /opt/maven/bin/mvn -Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath 
> %classpath ${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
> -Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
> -Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java 
> -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
> Running NetBeans Compile On Save execution. Phase execution is skipped and 
> output directories of dependency projects (with Compile on Save turned on) 
> will be used instead of their jar artifacts.
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Scanning for projects...---< net.atramentovo:InputTestMaven 
> >---
> Building InputTestMaven 0.1
> [ jar ] 
> exec-maven-plugin:3.0.0:exec (default-cli) @ InputTestMaven ---
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Enter text: 
> Řeka šuměla skalnatým údolím
> You have entered: Xeka aumla skalnat�m �dol�m
> 
> BUILD SUCCESS
> 
> Total time:  2.682 s
> Finished at: 2021-10-10T19:55:24+01:00
> 
> {code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Updated] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-30 Thread Vladimir Machat (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Machat updated NETBEANS-6115:
--
Component/s: apisupport - Maven

> UTF-8 input is broken in Maven project
> --
>
> Key: NETBEANS-6115
> URL: https://issues.apache.org/jira/browse/NETBEANS-6115
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Maven
> Environment: Linux Manjaro
> Netbeans 12.5 (but the same problem is in earlier versions too)
> Maven 3.8.2
> Java - tried with 8,14,17 
>  
>Reporter: Vladimir Machat
>Priority: Major
>
> Trying to get user input containing 'special characters' like ščřžýáíé 
> doesn't work in Maven project:
>  
> {code:java}
> Scanner sc = new Scanner(System.in, "UTF-8");
> System.out.println("Enter text: ");
> String text = sc.nextLine();
> System.out.println("You have entered: " + text);
>  
> {code}
>  
>  
> In Netbeans this code will fail printing what you entered if you enter 
> something like 'český, řeka etc...' but works ok with any input not 
> containing these characters
> Same code works in an Ant project without any problems.
> It also works on command line by copying and pasting the command from 
> Netbeans output window (and replacing the double quotes with single quotes). 
> Example:
> {code:java}
> cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
> JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven 
> /opt/maven/bin/mvn -Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath 
> %classpath ${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
> -Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
> -Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java 
> -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
> Running NetBeans Compile On Save execution. Phase execution is skipped and 
> output directories of dependency projects (with Compile on Save turned on) 
> will be used instead of their jar artifacts.
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Scanning for projects...---< net.atramentovo:InputTestMaven 
> >---
> Building InputTestMaven 0.1
> [ jar ] 
> exec-maven-plugin:3.0.0:exec (default-cli) @ InputTestMaven ---
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Enter text: 
> Řeka šuměla skalnatým údolím
> You have entered: Xeka aumla skalnat�m �dol�m
> 
> BUILD SUCCESS
> 
> Total time:  2.682 s
> Finished at: 2021-10-10T19:55:24+01:00
> 
> {code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Updated] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-10 Thread Vladimir Machat (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Machat updated NETBEANS-6115:
--
Description: 
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

 
{code:java}
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
 
{code}
 

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

Example of output:
{code:java}
cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven /opt/maven/bin/mvn 
-Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath %classpath 
${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
-Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
-Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java -Dfile.encoding=UTF-8 
org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
Running NetBeans Compile On Save execution. Phase execution is skipped and 
output directories of dependency projects (with Compile on Save turned on) will 
be used instead of their jar artifacts.
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Scanning for projects...---< net.atramentovo:InputTestMaven 
>---
Building InputTestMaven 0.1
[ jar ] 
exec-maven-plugin:3.0.0:exec (default-cli) @ InputTestMaven ---
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Enter text: 
Řeka šuměla skalnatým údolím
You have entered: Xeka aumla skalnat�m �dol�m

BUILD SUCCESS

Total time:  2.682 s
Finished at: 2021-10-10T19:55:24+01:00

{code}
 

 

 

  was:
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

 
{code:java}
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
 
{code}
 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

 


> UTF-8 input is broken in Maven project
> --
>
> Key: NETBEANS-6115
> URL: https://issues.apache.org/jira/browse/NETBEANS-6115
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux Manjaro
> Netbeans 12.5 (but the same problem is in earlier versions too)
> Maven 3.8.2
> Java - tried with 8,14,17 
>  
>Reporter: Vladimir Machat
>Priority: Major
>
> Trying to get user input containing 'special characters' like ščřžýáíé 
> doesn't work in Maven project:
>  
> {code:java}
> Scanner sc = new Scanner(System.in, "UTF-8");
> System.out.println("Enter text: ");
> String text = sc.nextLine();
> System.out.println("You have entered: " + text);
>  
> {code}
>  
>  
> In Netbeans this code will fail printing what you entered if you enter 
> something like 'český, řeka etc...' but works ok with any input not 
> containing these characters
> Same code works in an Ant project without any problems.
> It also works on command line by copying and pasting the command from 
> Netbeans output window (and replacing the double quotes with single quotes). 
> Example of output:
> {code:java}
> cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
> JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven 
> /opt/maven/bin/mvn -Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath 
> %classpath ${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
> -Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
> -Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java 
> -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
> Running NetBeans Compile On Save execution. Phase execution is skipped and 
> output directories of dependency projects (with Compile on Save turned on) 
> will be used instead of their jar artifacts.
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on 

[jira] [Updated] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-10 Thread Vladimir Machat (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Machat updated NETBEANS-6115:
--
Description: 
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

 
{code:java}
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
 
{code}
 

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

Example:
{code:java}
cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven /opt/maven/bin/mvn 
-Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath %classpath 
${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
-Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
-Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java -Dfile.encoding=UTF-8 
org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
Running NetBeans Compile On Save execution. Phase execution is skipped and 
output directories of dependency projects (with Compile on Save turned on) will 
be used instead of their jar artifacts.
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Scanning for projects...---< net.atramentovo:InputTestMaven 
>---
Building InputTestMaven 0.1
[ jar ] 
exec-maven-plugin:3.0.0:exec (default-cli) @ InputTestMaven ---
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Enter text: 
Řeka šuměla skalnatým údolím
You have entered: Xeka aumla skalnat�m �dol�m

BUILD SUCCESS

Total time:  2.682 s
Finished at: 2021-10-10T19:55:24+01:00

{code}
 

 

 

  was:
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

 
{code:java}
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
 
{code}
 

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

Example of output:
{code:java}
cd /home/atrament/Nextcloud/Projects/java/InputTestMaven; 
JAVA_HOME=/opt/java/jdk-14.0.1+7-hotspot M2_HOME=/opt/maven /opt/maven/bin/mvn 
-Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath %classpath 
${exec.mainClass} ${exec.appArgs}" -Dexec.appArgs= 
-Dexec.mainClass=net.atramentovo.inputtestmaven.Main 
-Dexec.executable=/opt/java/jdk-14.0.1+7-hotspot/bin/java -Dfile.encoding=UTF-8 
org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
Running NetBeans Compile On Save execution. Phase execution is skipped and 
output directories of dependency projects (with Compile on Save turned on) will 
be used instead of their jar artifacts.
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Scanning for projects...---< net.atramentovo:InputTestMaven 
>---
Building InputTestMaven 0.1
[ jar ] 
exec-maven-plugin:3.0.0:exec (default-cli) @ InputTestMaven ---
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Enter text: 
Řeka šuměla skalnatým údolím
You have entered: Xeka aumla skalnat�m �dol�m

BUILD SUCCESS

Total time:  2.682 s
Finished at: 2021-10-10T19:55:24+01:00

{code}
 

 

 


> UTF-8 input is broken in Maven project
> --
>
> Key: NETBEANS-6115
> URL: https://issues.apache.org/jira/browse/NETBEANS-6115
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux Manjaro
> Netbeans 12.5 (but the same problem is in earlier versions too)
> Maven 3.8.2
> Java - tried with 8,14,17 
>  
>Reporter: Vladimir Machat
>

[jira] [Updated] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-07 Thread Vladimir Machat (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Machat updated NETBEANS-6115:
--
Description: 
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

 
{code:java}
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
 
{code}
 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

 

  was:
Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

{{Scanner sc = new Scanner(System.in, "UTF-8");}}
{{ System.out.println("Enter text: ");}}
{{ String text = sc.nextLine();}}
{{ System.out.println("You have entered: " + text);}}

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

 


> UTF-8 input is broken in Maven project
> --
>
> Key: NETBEANS-6115
> URL: https://issues.apache.org/jira/browse/NETBEANS-6115
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux Manjaro
> Netbeans 12.5 (but the same problem is in earlier versions too)
> Maven 3.8.2
> Java - tried with 8,14,17 
>  
>Reporter: Vladimir Machat
>Priority: Major
>
> Trying to get user input containing 'special characters' like ščřžýáíé 
> doesn't work in Maven project:
>  
> {code:java}
> Scanner sc = new Scanner(System.in, "UTF-8");
> System.out.println("Enter text: ");
> String text = sc.nextLine();
> System.out.println("You have entered: " + text);
>  
> {code}
>  
> In Netbeans this code will fail printing what you entered if you enter 
> something like 'český, řeka etc...' but works ok with any input not 
> containing these characters
> Same code works in an Ant project without any problems.
> It also works on command line by copying and pasting the command from 
> Netbeans output window (and replacing the double quotes with single quotes). 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Created] (NETBEANS-6115) UTF-8 input is broken in Maven project

2021-10-07 Thread Vladimir Machat (Jira)
Vladimir Machat created NETBEANS-6115:
-

 Summary: UTF-8 input is broken in Maven project
 Key: NETBEANS-6115
 URL: https://issues.apache.org/jira/browse/NETBEANS-6115
 Project: NetBeans
  Issue Type: Bug
 Environment: Linux Manjaro

Netbeans 12.5 (but the same problem is in earlier versions too)

Maven 3.8.2

Java - tried with 8,14,17 

 
Reporter: Vladimir Machat


Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

{{Scanner sc = new Scanner(System.in, "UTF-8");}}
{{ System.out.println("Enter text: ");}}
{{ String text = sc.nextLine();}}
{{ System.out.println("You have entered: " + text);}}

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



[jira] [Commented] (NETBEANS-4812) System.out.print() statements placed before Scanner calls, such as scanner::next(), do not output until after input is entered only in Netbeans console

2021-03-31 Thread Vladimir Machat (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17312211#comment-17312211
 ] 

Vladimir Machat commented on NETBEANS-4812:
---

Although it may be a Maven problem, the issue is still there and can be simply 
fixed by changing the exec goal that Netbeans calls to 'exec:java'. Is there a 
reason for using 'exec:exec' goal?

> System.out.print() statements placed before Scanner calls, such as 
> scanner::next(), do not output until after input is entered only in Netbeans 
> console
> ---
>
> Key: NETBEANS-4812
> URL: https://issues.apache.org/jira/browse/NETBEANS-4812
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java, java - Editor, platform - Output 
> Window, projects - Maven
>Affects Versions: 12.0
> Environment: java --version
> openjdk 14.0.2 2020-07-14
> OpenJDK Runtime Environment (build 14.0.2+12-46)
> OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
> NetBeans About Info:
> Product Version: Apache NetBeans IDE 12.0
> Java: 14.0.2; OpenJDK 64-Bit Server VM 14.0.2+12-46
> Runtime: OpenJDK Runtime Environment 14.0.2+12-46
> System: Mac OS X version 10.15.6 running on x86_64; UTF-8; en_US (nb)
> Hardware Information:
> Model Name:   MacBook Pro
>   Model Identifier:   MacBookPro15,2
>   Processor Name: Quad-Core Intel Core i7
>   Processor Speed:2.8 GHz
>   Number of Processors:   1
>   Total Number of Cores:  4
>   L2 Cache (per Core):256 KB
>   L3 Cache:   8 MB
>   Hyper-Threading Technology: Enabled
>   Memory: 16 GB
>   Boot ROM Version:   1037.147.4.0.0 (iBridge: 17.16.16610.0.0,0)
>   Serial Number (system): C02ZT04JP4G2
>   Hardware UUID:  9678EC89-6B02-50FB-84B6-CA859359FB50
>   Activation Lock Status: Enabled
> System Software Overview:
>   System Version: macOS 10.15.6 (19G2021)
>   Kernel Version: Darwin 19.6.0
>   Boot Volume:Macintosh HD
>   Boot Mode:  Normal
>   Computer Name:  --
>   User Name:  --
>   Secure Virtual Memory:  Enabled
>   System Integrity Protection:Enabled
>   Time since boot:24 days 14:53
>Reporter: Keegan Bilodeau
>Assignee: Siddhesh Rane
>Priority: Major
>  Labels: console, java, jdk14, netbeans, netbeans-ui, output
> Attachments: CSCI_2011_Assign_1.zip
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> I have a program that runs perfectly fine in both the terminal and in 
> Intellij, but then when the Java code is run inside a NetBeans project, it 
> outputs incorrectly.
> (Before I continue the description, I have a video 
> [here|https://twitter.com/Keglomaniac04/status/1306704821743910913?s=20] and 
> the project itself is attached to this report)
> The following is the first code that ran into the problem:
>  
> {code:java}
> System.out.print("\nPlease enter a month and year (e.g. Sep 2020): ");
> selectedMonth = Month.valueOf(keyboard.next().toUpperCase());
> selectedYear = keyboard.nextInt();
> {code}
>  
> In Intellij and the terminal this was the output (which is correct):
> {code:java}
> Welcome to Keegan Bilodeau's Calendar Application!
> Please enter a month and year (e.g. Sep 2020): l
> Error: You did not enter a valid month!
> Please enter a month and year (e.g. Sep 2020): 
> {code}
>  
> This is the output in NetBeans (which is wrong):
> {code:java}
> Welcome to Keegan Bilodeau's Calendar Application!
> l
> Please enter a month and year (e.g. Sep 2020): Error: You did not enter a 
> valid month!
> {code}
>  
> **Something to note is that when the System.out.print() is changed to 
> System.out.println(), the code runs properly, but with a newline, which is 
> not what I wanted nor should be necessary.  One might assume that it was 
> because System.out.println() flushes the stream; however, Using 
> System.out.print() in conjunction with System.out.flush() changed nothing
>  
> For even more information regarding the issue, see the attached files.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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