mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 01:46:46 +07:00
Without this it was possible (at least on the incorrect code) that boxed and unboxed classes for the same value get united, which in turn caused repeating entry in DfaMemoryStateImpl#myIdToEqClassesIndices, which could cause NPE when performing successive flush for given variable. Now we throw directly at classes unification attempt to catch illegal state earlier Fixes EA-118152 - IAE: EqClass.$$$reportNull$$$
20 lines
309 B
Java
20 lines
309 B
Java
public enum Test {
|
|
VALUE;
|
|
|
|
void test() {
|
|
Integer code = getCode();
|
|
switch (code) {
|
|
case VALUE.value()<EOLError descr="':' expected"></EOLError>
|
|
}
|
|
if (code == VALUE.value()) {
|
|
getCode();
|
|
}
|
|
|
|
}
|
|
|
|
int value() {
|
|
return ordinal();
|
|
}
|
|
|
|
public native Integer getCode();
|
|
} |