-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
9
-
x86_64
-
linux
FULL PRODUCT VERSION :
java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-b26)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b26, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hydra 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Bug initially filed against Android Studio:
https://code.google.com/p/android/issues/detail?id=80717
Whether pasting into the editor or into the search box, for every 'n' in the content being pasted, it is being converted to '\n'.
For example, if I paste:
String s = "This should not contain a newline.";
Result is:
Stri
g s = "This should
ot co
tai
a
ewli
e.";
Doesn't matter if the text is in quotes or not, but the result is more obvious when it is.
Verified in Android Studio, IntelliJ and jEdit.
REGRESSION. Last worked in version 8u25
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b86)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b28, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Copy string from above. Paste it into a Java program running on JDK9.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Pasted verbatim, as in JDK8.
ACTUAL -
Literal 'n' characters are converted to newlines
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Use JDK8
java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-b26)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b26, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hydra 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Bug initially filed against Android Studio:
https://code.google.com/p/android/issues/detail?id=80717
Whether pasting into the editor or into the search box, for every 'n' in the content being pasted, it is being converted to '\n'.
For example, if I paste:
String s = "This should not contain a newline.";
Result is:
Stri
g s = "This should
ot co
tai
a
ewli
e.";
Doesn't matter if the text is in quotes or not, but the result is more obvious when it is.
Verified in Android Studio, IntelliJ and jEdit.
REGRESSION. Last worked in version 8u25
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b86)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b28, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Copy string from above. Paste it into a Java program running on JDK9.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Pasted verbatim, as in JDK8.
ACTUAL -
Literal 'n' characters are converted to newlines
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Use JDK8