8235541: Extend javax.lang.model to cover binding variables

Reviewed-by: darcy
This commit is contained in:
Jan Lahoda 2019-12-09 09:40:09 +01:00
parent 92a9543552
commit ad5ea72286
9 changed files with 222 additions and 2 deletions

View file

@ -36,7 +36,7 @@ public class TestGetElementReferenceData {
utility/*getElement:METHOD:test.TestGetElementReferenceData.Base.utility()*/();
target(TestGetElementReferenceData :: test/*getElement:METHOD:test.TestGetElementReferenceData.test()*/);
Object/*getElement:CLASS:java.lang.Object*/ o = null;
if (o/*getElement:LOCAL_VARIABLE:o*/ instanceof String/*getElement:CLASS:java.lang.String*/ str/*getElement:LOCAL_VARIABLE:str*/) ;
if (o/*getElement:LOCAL_VARIABLE:o*/ instanceof String/*getElement:CLASS:java.lang.String*/ str/*getElement:BINDING_VARIABLE:str*/) ;
}
private static void target(Runnable r) { r.run(); }
public static class Base {