This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | JavaInstanceSupport is turned on while a classfile is still being written by the compiler. | ||
---|---|---|---|
Product: | java | Reporter: | Jesse Glick <jglick> |
Component: | Unsupported | Assignee: | Svata Dedic <sdedic> |
Status: | CLOSED WONTFIX | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jesse Glick
2000-02-11 01:56:34 UTC
Although the compiler can disable InstanceCookie on some classes during compiler execution, it's not possible to handle all files traversed by the (external) compiler this way. Clients of InstanceCookie should better catch the CNFE and either report a message to the user, or recover somehow. Understood that you cannot tell exactly when the external compiler is running, nor on what. What about this: if a new classfile is recognized on disk and reported as a new secondary entry, but its lastModified timestamp is very recent (past second or so), don't add the instance cookie immediately--wait another second or so, by which point it is likely the compiler will have finished dealing with it. But I doubt this bug really matters very much, so don't waste time on it. Resolved for 3.4.x or earlier, no new info since then -> closing. |