Imported GNU Classpath 0.20
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r109831
This commit is contained in:
@@ -144,8 +144,8 @@ class ElementAvailableFunction
|
||||
{
|
||||
return elements.contains(localName) ?
|
||||
Boolean.TRUE : Boolean.FALSE;
|
||||
// TODO extension elements
|
||||
}
|
||||
// TODO extension elements
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
|
||||
@@ -153,16 +153,12 @@ class ElementAvailableFunction
|
||||
{
|
||||
NamespaceContext n = nsctx;
|
||||
if (context instanceof NamespaceContext)
|
||||
{
|
||||
n = (NamespaceContext) context;
|
||||
}
|
||||
n = (NamespaceContext) context;
|
||||
ElementAvailableFunction f = new ElementAvailableFunction(n);
|
||||
int len = args.size();
|
||||
List args2 = new ArrayList(len);
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
args2.add(((Expr) args.get(i)).clone(context));
|
||||
}
|
||||
args2.add(((Expr) args.get(i)).clone(context));
|
||||
f.setArguments(args2);
|
||||
return f;
|
||||
}
|
||||
@@ -172,12 +168,15 @@ class ElementAvailableFunction
|
||||
for (Iterator i = args.iterator(); i.hasNext(); )
|
||||
{
|
||||
if (((Expr) i.next()).references(var))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return "element-available(" + args.get(0) + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user