|
|
Re: Java Capability
|
Posted: Dec 8, 2004 12:17 AM
|
|
> The question was not about the execution, but about how to > write something without getting it compiled.
I see your point.
Nevertheless, the code isn't compiled (into the class file) but, because the 'unwanted' code is not a comment, the compiler still needs to check it for semantic correctness. If errors are found the compiler can no longer assume it has a block of unwanted code. It just sees the errors.
Either way the unwanted code does not make it into the class file.
V.
|
|