-
Notifications
You must be signed in to change notification settings - Fork 111
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
ArrayIndexOutOfBoundsException in ImportCohesionCheck on file with imports only #451
Comments
@yegor256 please do something about this issue |
@mkordas would be great to see your |
@mkordas Could you add an example java file that causes this crash? |
@krzyk I don't know the file. Any hints how can I track it? I tried updating to Checkstyle 6.12 which reports problematic filename in stacktraces, but I didn't succeed with building qulice-maven-plugin locally: |
@mkordas Maybe we could change this issue into a an upgrade to checkstyle 6.12? We could do a release and then you could check if qulice fails on your code, and if it does you would have the filename? |
@mkordas BTW is there an info about filenames in stack traces in Checkstyle realise notes? I can't find it. |
@krzyk There is note about additional logging in release notes:
|
@mkordas But until the checkstyle is upgraded this issue is not valid, without an example we don't know where is the problem. |
@krzyk OK, so I'm closing it. |
@krzyk I've managed to build Qulice with Checkstyle 6.12 locally (although I needed to do
Minimal reproducer: package com.google;
import java.util.*; Note: this is valid and compilable Java file. |
@mkordas interesting case, thanks |
@mkordas could you add a he code above to the issue description? It will be easier to find. |
@davvd valid bug |
@mkordas yes, thanks |
@davvd this is postponed |
@mkordas thanks for this report, I added 15 mins to your account, in transaction |
@davvd this is not postponed |
@HDouss want to take this? |
@krzyk Yes please. |
@mkordas The minimal reproducer here would fail because of |
@HDouss can't you just add newline at the end of file but still keep just imports? |
@mkordas Do you reproduce ArrayIndexOutOfBoundsException in ImportCohesionCheck for such a file ? |
@HDouss In August it was reproducible for me, I don't remember exactly how :) We just need any test case for the issue. |
@HDouss thanks! |
I get the following exception while doing analysis of Checkstyle project:
Do you need anything else to reproduce?
The text was updated successfully, but these errors were encountered: