JSP Scriptlet Validation is not recognized as error

This topic contains 3 replies, has 3 voices, and was last updated by  Brian Fernandes 5 months, 4 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #543200 Reply

    filan
    Participant

    Hello dear members,

    consider following code in a JSP

    MyEclipse is saying for the line

    out.print(VDataSet.get());

    The method print(boolean) is ambiguous for the type JspWriter

    which is correct behaviour (only if you have JDT Compiler >= 4.5.1 and Java 1.8 dependency)

    but the line

    <%= VDataSet.get() %>

    is also incorrect, because it gets translated by the compiler to the same output as the first mentioned line.

    The problem is that MyEclipse won’t say that this is also an error. But it actually is

    We have tried turning on ALL the Validation/Warnings/Errors options in the configuration of MyEclipse but still no luck

    Since we want to update to a newer Tomcat with newer JDT Compiler (MyEclipse already has new JDT Compiler), this is causing all of our JSPs (which uses JSP-Scriptlets for out.print for generic methods) not to be compiled, and there are really a lot of them

    Is there anything I can tell MyEclipse to recognize this as an error?

    • This topic was modified 6 months, 1 week ago by  filan.
    Attachments:
    You must be logged in to view attached files.
    #543364 Reply

    support-swapna
    Moderator

    filan,

    Sorry that you are seeing this issue. Thank you for the code snippet and the screenshot. I could replicate the problem at my end. The dev team is looking into it and will get back to you soon.

    If you are working with a release older than MyEclipse 2017 CI 8, then please share with us the MyEclipse version details.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #543519 Reply

    filan
    Participant

    We are always using the latest MyEclipse, in this case it is indeed 2017 CI 8

    #543998 Reply

    Brian Fernandes
    Moderator

    Filan,

    Just wanted to let you know that we’ll be adding this to our investigation queue for the 2017 CI 10 release. Will keep you posted on updates.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP Scriptlet Validation is not recognized as error