title: Why is java compiler not complaining about "\s"?
body: <p>Tried it on openjdk version &quot;15&quot; 2020-09-15</p>
  <p>Following simple line</p>
  <p><code>String str = &quot;\s&quot;;</code></p>
  <p>According to official documentation of <a href="https://docs.oracle.com/javase/tutorial/java/data/characters.html" rel="nofollow noreferrer">list of escape characters</a>, \s is not defined.</p>
  <p>Spring tool suite does not show compilation error for '\s' nor does when I compile on command line using maven. Any other characters such as \p result into following error which matches with official documentation.</p>
  <blockquote>
  <p>Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  &quot;  '  \ )</p>
  </blockquote>
  <p>Why doesn't java compiler complain about \s? Printing the resultant string on console indicates that it's outputting space character (0x20), so looks like it's recognizing it, but just not documented.</p>