Author: snjeza
Date: 2008-05-02 17:12:50 -0400 (Fri, 02 May 2008)
New Revision: 7951
Modified:
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java
Log:
JBIDE-2178 Error in Visual Page editor, Seam .xhtml file
Modified:
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java
===================================================================
---
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2008-05-02
19:52:24 UTC (rev 7950)
+++
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2008-05-02
21:12:50 UTC (rev 7951)
@@ -79,7 +79,7 @@
bStart--;
}
// find end of bean property
- while (bEnd < sb.length()) {
+ while (bEnd >= 0 && bEnd < sb.length()) {
if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) &&
sb.charAt(bEnd) != '\\' && sb.charAt(bEnd) != '/'
&&
sb.charAt(bEnd) != ':' && sb.charAt(bEnd) != '-'
&&
Modified:
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java
===================================================================
---
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java 2008-05-02
19:52:24 UTC (rev 7950)
+++
branches/jbosstools-2.1.x/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java 2008-05-02
21:12:50 UTC (rev 7951)
@@ -208,7 +208,7 @@
bStart--;
}
// find end of bean property
- while (bEnd < sb.length()) {
+ while (bEnd >= 0 && bEnd < sb.length()) {
if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) &&
sb.charAt(bEnd) != '\\' && sb.charAt(bEnd) != '/'
&&
sb.charAt(bEnd) != ':' && sb.charAt(bEnd) != '-'
&&
Show replies by date