facebook

Empty block warnings in JSPs

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

    Patryn
    Member

    I have empty blocks warnings aktive.
    Following code fragment gives me an ‘Empty blocks should be documented’ warning:

    if (dbo.getThema() < 0) {
    %> <option value=”” selected=”selected”>bitte wählen</option>
    <%
    }

    Is that ok?


    André

    #215253 Reply

    Greg
    Member

    I tried to replicate this warning, but was unable with the above snippet. Could you give the above code a little more context or perhaps the entire jsp file. However, if it is just a warning and the jsp works correctly in your appserver, then I think your probably ok.

    #215263 Reply

    Riyad Kalla
    Member

    Andre,
    What version of ME are you using? The older version used the JDT compiler to compile the generated JSP classes, which means it used the compiler settings, one of which “report undocumented sections of code”, the new one however uses javac from Sun, so you shouldn’t be seeing these.

    #215318 Reply

    Patryn
    Member

    I wrote the version in another thread, ME with latest 3rd quick fix, full install, eclipse 3.0.1.

    And i am absolutely happy with the feature “report undocumented sections of code” or “report empty blogs” and so on.

    When lomboz became unusable with the latest version und i changed to myeclipse, i was quite happy to see, that in myeclipse the compiler-options from the workspace setting where used. (wasnt in lomboz)
    Only there seems to be problems…the generated…out.println() isnt an empty code section.

    Umm…if i am the only person observing it…not sooo important.
    ThX

    André

    #215346 Reply

    Riyad Kalla
    Member

    Andre I’ve tried (along with Greg) to reproduce this using your snippet and we can’t. If you can copy-paste more of a JSP page for us to test, we’d be happy to.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Empty block warnings in JSPs

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