Here phase.isPresent throws a NoSuchMethodError after clean/build. What am I missing?

--

UPDATE: Netbeans has two cache folders. One was empty, the other one was not. That is my bad, apparently I didn't put enough effort into the caching issue. Unfortunately I cannot downvote my own question...

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1

code seems fine.is it possible for you to post the whole class?
–
sherryApr 4 '13 at 10:27

Thank you, I already have the ScanOnDemand plugin added as due to a known issue 7.2's background scan can fall into an infinite loop (already fixed in 7.2.1, I just haven't got the time to upgrade yet). This by default disables the compile on save feature, so after each modification I always run a full clean/build before starting the next debug session. The cache folder is empty (has been empty for weeks, which is also a bit odd).
–
András HummerApr 4 '13 at 10:55

yes, that's definetley odd. Whenever I looked at it, regardless of options, it always had something. Hm. Is it a maven project?
–
linskiApr 4 '13 at 10:58

you might wanna try running the project via ant from command line, it should do less processing that way if I remeber correctly. If you find a solution please feedback. PS I moved to eclipse because it got to irritating after some time. Now I got irritated by it too, so I'm moving to IDEA :)
–
linskiApr 4 '13 at 11:17

I already have, at least a dozen times. if (phase.present) works neither, in this case a java.lang.NoSuchMethodError: MyClass$ERASE_PHASE.access$000(LMyClass$ERASE_PHASE;)Z is thrown.
–
András HummerApr 4 '13 at 10:37

Thank you, I take a look at the compile and runtime classpath differences, whether any.
–
András HummerApr 4 '13 at 10:38

What if you try to use a different IDE. It might be an issue about your IDE. You can try to clear manually the generated classes and check the file generated (with a java decompiler you will be able to check the differences)
–
TheEwookApr 4 '13 at 11:07