error: cannot access il; class file for il not found.

ArrayList<Item> array = new ArrayList<Item>();
int foo == 0;
int bar == 1;

while (stuff.happens()) {
array.add(new Item(foo, bar));
}
ArrayList<Item> array = new ArrayList<Item>();
int foo == 0;
int bar == 1;

while (stuff.happens()) {
array.add(new Item(foo, bar));
}
Why does this not compile?
- BUILD FAILED (total time: 1 second)
- error: cannot access il
- array.add(new Item(foo, bar));
- class file for il not found
- 1 error
- BUILD FAILED (total time: 1 second)
- error: cannot access il
- array.add(new Item(foo, bar));
- class file for il not found
- 1 error
WTH does this error even mean?
6 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @Pheotis! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Pheotis
PheotisOP2y ago
Sorry, that was a typo; I was half asleep when I copied that last night from some old code. Specifically, the relevant section is:
Pheotis
PheotisOP2y ago
No description
Pheotis
PheotisOP2y ago
If "il" is a class, maybe it's from a dependency? Still not sure why it's looking for that class though since I can't find anything that refers to it Also not sure why it fails on the array.add line of all places
JavaBot
JavaBot2y ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server