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

Raw types crash in lub #988

Closed
justmin opened this issue Dec 14, 2016 · 1 comment
Closed

Raw types crash in lub #988

justmin opened this issue Dec 14, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@justmin
Copy link

justmin commented Dec 14, 2016

Simple interface compilation produce exception with CF 2.1.6. Works good with CF 2.1.0

public interface TestClass {
    Class getRawClass();
    Class<?> getGenericClass();
    default Class<?> getWithArg(boolean generic){
        return generic ? getGenericClass() : getRawClass();
    }
}

wmdietl added a commit that referenced this issue Dec 14, 2016
@wmdietl
Copy link
Member

wmdietl commented Dec 14, 2016

Thanks for your report! I've added a test case that reproduces the problem at framework/tests/all-systems/Issue988.java.

smillst added a commit that referenced this issue Dec 14, 2016
…ypeMirror.

This way raw types always have type arguments. Fixes #988.
@smillst smillst changed the title unexpected Throwable (IndexOutOfBoundsException) Raw types crash in lub Dec 14, 2016
@smillst smillst self-assigned this Dec 14, 2016
@smillst smillst added the crash label Dec 14, 2016
@smillst smillst added this to the High milestone Dec 14, 2016
mernst pushed a commit that referenced this issue Dec 24, 2016
Move code that creates type arguments for raw types to the AnnotatedTypeMirror.
This way raw types always have type arguments. Fixes #988.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants