1

Topic: The strange glitch IntelliJ IDEA

IntelliJ IDEA 2016.1.3
Faced the such:

if (__ || Function ()) {
//......
}

It is always fulfilled regardless of the fact that in a constant and that Function returns ().
I.e. laid down break point on a condition and  a debugger: "__ || Function ()" = false
And the condition is fulfilled! Began to change the code, the glitch disappeared. Returned back as was - the glitch is not present.
Then found out the same in other place. Touched nothing, but made "Rebuild project" - the condition ceased to be fulfilled, there where should not.
What for nonsense?
The matter is that I found out it after a month after  new APK on PlayMarket and did not know that the program works not correctly.
How to prevent the such? From time to time to rebuild the project?

2

Re: The strange glitch IntelliJ IDEA

What difference that shows IDEA, your program on the real device is fulfilled, so or the condition is correctly written or is not present, the object inspector theoretically just can show incorrectly something, and here a reality will not deceive.

3

Re: The strange glitch IntelliJ IDEA

Slon747 wrote:

How to prevent the such?

If without  the problem does not repeat under no circumstances to twist its adjustments.

4

Re: The strange glitch IntelliJ IDEA

wadman wrote:

it is passed...
If without  the problem does not repeat under no circumstances to twist its adjustments.

On PlayMarkete the program has been compiled with proguard and on it noted strangenesses.
But then transited a debugger, and after all at debugging proguard does not work.