mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
bugfixes
This commit is contained in:
parent
59638543c7
commit
7a340fd8fb
@ -60,7 +60,10 @@ public abstract class URLStreamHandler {
|
||||
}
|
||||
}
|
||||
if (url.getFile() != null) {
|
||||
sb.append("/").append(url.getFile());
|
||||
if (url.getHost() != null) {
|
||||
sb.append("/");
|
||||
}
|
||||
sb.append(url.getFile());
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
@ -282,19 +282,19 @@ Method_invoke(Thread* t, jclass, jobject method, jobject instance,
|
||||
}
|
||||
|
||||
jobject
|
||||
Array_getObject(Thread* t, jobject array, int index)
|
||||
Array_getObject(Thread* t, jclass, jobject array, int index)
|
||||
{
|
||||
return pushReference(t, objectArrayBody(t, *array, index));
|
||||
}
|
||||
|
||||
void
|
||||
Array_setObject(Thread* t, jobject array, int index, jobject value)
|
||||
Array_setObject(Thread* t, jclass, jobject array, int index, jobject value)
|
||||
{
|
||||
set(t, objectArrayBody(t, *array, index), (value ? *value : 0));
|
||||
}
|
||||
|
||||
jint
|
||||
Array_getLength(Thread* t, jobject array)
|
||||
Array_getLength(Thread* t, jclass, jobject array)
|
||||
{
|
||||
if (LIKELY(array)) {
|
||||
object a = *array;
|
||||
|
@ -1939,7 +1939,7 @@ byteArrayEqual(Thread* t, object a, object b)
|
||||
inline uint32_t
|
||||
stringHash(Thread* t, object s)
|
||||
{
|
||||
if (stringHashCode(t, s) == 0) {
|
||||
if (stringHashCode(t, s) == 0 and stringLength(t, s)) {
|
||||
object data = stringData(t, s);
|
||||
if (objectClass(t, data)
|
||||
== arrayBody(t, t->vm->types, Machine::ByteArrayType))
|
||||
|
@ -1947,7 +1947,7 @@ run(Thread* t)
|
||||
} goto loop;
|
||||
|
||||
case lneg: {
|
||||
pushLong(t, - popInt(t));
|
||||
pushLong(t, - popLong(t));
|
||||
} goto loop;
|
||||
|
||||
case lookupswitch: {
|
||||
|
Loading…
Reference in New Issue
Block a user