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 😀