Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] Detecting compilation unit errors? (Bug 1729)

Tuesday, December 11, 2001, 7:36:45 PM, you wrote:

> The JavaHotCodeReplaceManager listens to resource changes. When it hears that
> a classfile has changed, it informs running targets and attempts a hot code 
> replace.

> We want to not even attempt the HCR if the compilation unit has compilation 
> errors. Given a class file, is there a simple way to detect if it has errors?

Unless I'm mistaken, but wouldn't a compilation error result in *no*
class file?  Thus, you'd have the old file there and could just do
something as simple as a timestamp check?  Or does the compiler in the
JDT do partial compilations?


-- 
Marco Qualizza

   1. The total sum of human intellect is a Universal Constant.
   2. The Earth's population keeps on increasing.

IE-Engine Canada Inc.
234-2426x226



Back to the top