An error occurred while debugging eclipse. The class file cannot be compiled.

Source: Internet
Author: User

 Today at the companyProgramDue to time factors, you need to adjust the system time to the previous few years. When the bug is fixed and running, why not report a null pointer error if (Object = NULL, it is true to use the eclipse breakpoint to check the items in if, but then press F6 to report an exception. It is really inexplicable. Later, my colleague reminded me to check the class directory of the project, I found that the modified Java file was not compiled at all. But isn't eclipse automatically compiled? At this time, I found that the modified Java file was generated in because I changed the system time, but the old class file was already in, therefore, eclipse may think that the class file has been compiled, so it will not be re-compiled, change the system time back to the current, save the modification, and everything is OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.