Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10778

ClassHyperlink.doHyperlink(IRegion region) fails to execute when region has escaped symbols like \r\n\t

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M5
    • common
    • None

      Junit fails

      junit.framework.ComparisonFailure: Active page should be  expected:<[IfHandler.java]> but was:<[facelets.taglib.xml]>
      	at junit.framework.Assert.assertEquals(Assert.java:81)
      	at org.jboss.tools.vpe.base.test.OpenOnUtil.checkOpenOnInEditor(OpenOnUtil.java:108)
      	at org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4509Test.testJBIDE4638OpenOnForHandlerClass(JBIDE4509Test.java:90)
      ...
      

      ClassName is "\r\n\t\t\t\tdemo.IfHandler\r\n\t\t\t"
      Changing to

      element = searchForClass(className.trim());
      

      solves the failure.

            dmaliarevich_jira Denis Maliarevich (Inactive)
            dmaliarevich_jira Denis Maliarevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: