Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4760

JavaScriptStripper fails with single line comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.8, 6.0.0
    • 6.1.0, 1.5.9
    • wicket
    • None

    Description

      The valid input
      x++ //
      x++

      gets transformed to
      x++ x++

      which is syntactically invalid. This breaks the unminified version of bootstrap 2.1.1.

      The problem doesn't occur with multiline comments because the linebreaks are preserved there.

      Attachments

        1. WICKET-4760.patch.txt
          0.5 kB
          Christoph Leiter
        2. WICKET-4760-tests.patch.txt
          3 kB
          Christoph Leiter

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            cleiter Christoph Leiter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: