title: Do Java multi-line comments account for strings?
body: <p>This question would probably apply equally as well to other languages with C-like multi-line comments. Here's the problem I'm encountering. I'm working with Java code in Eclipse, and I wanted to comment out a block of code. However, there is a string that contains the character sequence "*/", and Eclipse thinks that the comment should end there, even though it is inside a string. It gives me tons of errors and fails to build.</p>
  
  <pre><code>/*
     ... some Java code ...
     ... "... */ ..." ...
     ... more Java code ...
  */
  </code></pre>
  
  <p>Does the Java specification match with Eclipse's interpretation of my multi-line comment? I would like to think that Java and/or Eclipse would account for this sort of thing.</p>