I recently found this post. It basically says that Eclipse has a modified build-in compiler. It creates class files even if the java files contain errors.
Is this modified compiler used to create bytecode if I use the export function in Eclipse?
Yes, Eclipse does not use javac or any other compiler at all. If you want to compile your code using another compiler, you'll have to write your own build to do that.