[jbosstools-commits] JBoss Tools SVN: r43726 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 14 20:08:24 EDT 2012
Author: scabanovich
Date: 2012-09-14 20:08:24 -0400 (Fri, 14 Sep 2012)
New Revision: 43726
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
JBIDE-12446
https://issues.jboss.org/browse/JBIDE-12446
Avoid keepeng reference to char[] when calling String.substring
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-09-15 00:07:14 UTC (rev 43725)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-09-15 00:08:24 UTC (rev 43726)
@@ -327,7 +327,8 @@
int offset = scaner.getTokenOffset();
String value = null;
try {
- value = document.get(offset, length);
+ //Value will be kept in EL model, so it has to be separated from long char[] in document.
+ value = "" + document.get(offset, length);
} catch (BadLocationException e) {
WebKbPlugin.getDefault().logError(e);
return null;
More information about the jbosstools-commits
mailing list