Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 37125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:30:06+00:00 2026-05-10T14:30:06+00:00

This question would probably apply equally as well to other languages with C-like multi-line

  • 0

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.

/*    ... some Java code ...    ... '... */ ...' ...    ... more Java code ... */ 

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:30:06+00:00Added an answer on May 10, 2026 at 2:30 pm

    Eclipse is correct. There is no interpretation context inside a comment (no escaping, etc). See JLS §3.7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Warning: Note that this is a dumb question of something that I would probably
I know this is probably a very simple question but how would I do
I'm new to network programming. This is probably a stupid question, would it be
A simple answer to this super simple question would be great! Here is the
This question is based on this thread in Meta . I would like to
I found this question that is discussing what I would like to do, but
I would like to do something like this: public class Foo { // Probably
This question is very similar to that posed here . My problem is that
Ok this seems like a dumb question and probably is but I cannot figure
I thought this question would have already existed on SO, but then I couldn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.