facebook

JSP Editor shows incorrect syntax error if // comment used

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #231075 Reply

    monroe
    Member

    If a JSP file being edited has a line like:

    <% } // end if %>

    or

    <% int x=1; // comment %>

    in it, the last character in the code (e.g. } or ; ) will be flagged with a syntax error that says: “Syntax error: Insert } to complete MethodBody”.

    Moving the ending %> to the next line “fixes” it but this if you’ve inherited a MANY jsp’s that use this valid syntax, it’s a pain to fix.

    Any hope of getting this invalid syntax error cleared up?

    TIA

    Eclipse:
    Version: 3.0.2
    Build id: 200503110845

    MyEclipse
    Version: 3.8.4
    Build id: 200501171200-3.8.4

    Java
    java version “1.5.0_02”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
    Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

    NOTE: JRE 1.4.2 being used to install projects.

    OS:
    Microsoft XP Pro SP 2 + Current patches

    How installed: Can’t remember, it’s been a year and this is first issue with MyEclipse 😀

    #231108 Reply

    Riyad Kalla
    Member

    I will file this ASAP and see if it can make it into 4.0 Milestone 3 (it just missed the cutoff for Milestone 2).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP Editor shows incorrect syntax error if // comment used

You must be logged in to post in the forum log in