facebook

5.0.1 GA – validation bug with invalid JSP Expressions

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #257554 Reply

    skr
    Member

    I just stumbled upon this JSP-validation bug:

    The following line of code

    <table bgcolor="<%=col%>">

    is beeing detected as ‘not resolveable’ when the appropriate declaration (e.g.

    String col="efefef";

    is missing. But if you add a simple ‘#’ as needed by the bgcolor-tag

    <table bgcolor="#<%=col%>">

    the entire bgcolor value is turned blue and the variable ‘col’ is no longer beeing detected as ‘not resolveable’ by the validator!!!

    Furthermore the ‘col’ variable seem to ‘disappear’ entirely since adding the appropriate declaration at this point

    String col="efefef";

    still results in a warning ‘the local variable col is never read’

    #257595

    Riyad Kalla
    Member

    I can’t reproduce this using the col scriplet and then using the bgcolor entry with no hash symbol:

    #257605

    skr
    Member

    Well, I guess you tried it with adding the ‘#’ char…. please take a look at this code with the String=”efefef” declaration:

    and after removing the declaration:

    Java compiler compliance level ist set to 1.4, HTML validation is disabled – nothing else was changed!

    Any ideas?

    #257640

    Riyad Kalla
    Member

    Ahh I was able to reproduce the problem quickly, thanks for the heads up.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: 5.0.1 GA – validation bug with invalid JSP Expressions

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