equal
deleted
inserted
replaced
1327 return prevLookupClass; |
1327 return prevLookupClass; |
1328 } |
1328 } |
1329 |
1329 |
1330 // This is just for calling out to MethodHandleImpl. |
1330 // This is just for calling out to MethodHandleImpl. |
1331 private Class<?> lookupClassOrNull() { |
1331 private Class<?> lookupClassOrNull() { |
1332 return (allowedModes == TRUSTED) ? null : lookupClass; |
1332 if (allowedModes == TRUSTED) { |
|
1333 return null; |
|
1334 } |
|
1335 if (allowedModes == UNCONDITIONAL) { |
|
1336 // use Object as the caller to pass to VM doing resolution |
|
1337 return Object.class; |
|
1338 } |
|
1339 return lookupClass; |
1333 } |
1340 } |
1334 |
1341 |
1335 /** Tells which access-protection classes of members this lookup object can produce. |
1342 /** Tells which access-protection classes of members this lookup object can produce. |
1336 * The result is a bit-mask of the bits |
1343 * The result is a bit-mask of the bits |
1337 * {@linkplain #PUBLIC PUBLIC (0x01)}, |
1344 * {@linkplain #PUBLIC PUBLIC (0x01)}, |