Skip to content

Commit 0887ae0

Browse files
committed
fixing issue gwtproject#10181: don't call setInstantiable(...) for class still having a chance of instantiability
1 parent 73b1c6e commit 0887ae0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,9 @@ private boolean checkSubtypes(TreeLogger logger, JClassType originalType,
12721272
boolean instantiable =
12731273
checkSubtype(subtypeLogger, candidate, originalType, subtypePath, problems);
12741274
anySubtypes |= instantiable;
1275-
tic.setInstantiable(instantiable);
1275+
if (instantiable) {
1276+
tic.setInstantiable(true);
1277+
}
12761278

12771279
if (instantiable) {
12781280
subtypeLogger.branch(TreeLogger.DEBUG, "Is instantiable");
@@ -1285,6 +1287,9 @@ private boolean checkSubtypes(TreeLogger logger, JClassType originalType,
12851287
instSubtypes.add(candidate);
12861288
}
12871289
}
1290+
if (!anySubtypes) {
1291+
tic.setInstantiable(false);
1292+
}
12881293

12891294
return anySubtypes;
12901295
}

0 commit comments

Comments
 (0)