Lines Matching defs:to
8 * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
49 * @summary Test that arbitrary classes can't be converted to mirror's superclasses/interfaces.
100 // We allow arbitrary interface classes, depending on what implements them, to end up being
101 // convertible to ScriptObjectMirror, as an implementation can theoretically pass an
109 private static boolean canConvert(final Class<?> from, final Class<?> to) {
110 return Bootstrap.getLinkerServices().canConvert(from, to);
113 private static void assertCanConvert(final Class<?> from, final Class<?> to) {
114 assertTrue(canConvert(from, to));
117 private static void assertCanNotConvert(final Class<?> from, final Class<?> to) {
118 assertFalse(canConvert(from, to));