Author: andreas
Date: Thu Jan 22 07:04:26 2009
New Revision: 736663
URL: http://svn.apache.org/viewvc?rev=736663&view=rev
Log:
Qualify field access, clear stack when recycling link transformer.
Modified:
lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/AbstractLinkTransformer.java
Modified: lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/AbstractLinkTransformer.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/AbstractLinkTransformer.java?rev=736663&r1=736662&r2=736663&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/AbstractLinkTransformer.java (original)
+++ lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/cocoon/transformation/AbstractLinkTransformer.java Thu Jan 22 07:04:26 2009
@@ -279,10 +279,10 @@
// use existsMatching to match up with endElement
if (existsMatchingConfiguration(uri, name) && this.useIgnore) {
if (this.ignoreLinkElement) {
- ignoreLinkElementStack.push(Boolean.TRUE);
+ this.ignoreLinkElementStack.push(Boolean.TRUE);
return;
} else {
- ignoreLinkElementStack.push(Boolean.FALSE);
+ this.ignoreLinkElementStack.push(Boolean.FALSE);
}
}
@@ -329,7 +329,7 @@
getLogger().debug(this.indent + "</" + qname + ">");
}
if (existsMatchingConfiguration(uri, name) && this.useIgnore) {
- if (((Boolean) ignoreLinkElementStack.pop()).booleanValue()) {
+ if (((Boolean) this.ignoreLinkElementStack.pop()).booleanValue()) {
this.ignoreLinkElement = false;
return;
}
@@ -399,6 +399,7 @@
public void recycle() {
super.recycle();
this.area = null;
+ this.ignoreLinkElementStack.clear();
}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.