Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testfailures for Java 8 annotations #91

Open
schauder opened this issue Jun 2, 2018 · 0 comments
Open

Testfailures for Java 8 annotations #91

schauder opened this issue Jun 2, 2018 · 0 comments

Comments

@schauder
Copy link
Collaborator

schauder commented Jun 2, 2018

Given the following class:

public class ClassWithTypeAnnotations // implements clause:
implements @TypeAnno1 ClassWithTypeParam<@TypeAnno2 T> {

//    Class instance creation expression:
private Object x = new @TypeAnno3 Object();

private @TypeAnno6 Object str = "Hallo";

//    Type cast:
public String myString = (@TypeAnno4 String) str;

//    Thrown exception declaration:
public void throwsAnnotatedException() throws @TypeAnno5 SQLException {
}

@Override
public @TypeAnno2 T doSomething() {
    try{
        @TypeAnno8 String local = new String();

    } catch (@TypeAnno7 RuntimeException re){

    }

    return null;
}

}

there should be dependencies from ClassWithTypeAnnotations to TypeAnno8 and TypeAnno7
but there aren't. So annotations on local variables and on catch blocks don't get found properly.

schauder added a commit that referenced this issue Jun 2, 2018
There were two tests failing because certain types of dependencies don't get detected.
In order to get a clean build again I removed the tests and created #91 for it in order to fix it later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant