The preview compilation of modules ignore class files supplied to module path of normal compilation of modules. This introduces spurious errors when a module has preview files and compiles against external class files at the same time.
Also removed a useless `ifneq ($(COMPILER), bootjdk)` condition, please review the diff without whitespace. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Apply suggestion from @liach - Remember to clean preview stuff - This seems to work - Respect non-source class files for module compilation Changes: https://git.openjdk.org/valhalla/pull/2506/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2506&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8385932 Stats: 48 lines in 2 files changed: 2 ins; 1 del; 45 mod Patch: https://git.openjdk.org/valhalla/pull/2506.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2506/head:pull/2506 PR: https://git.openjdk.org/valhalla/pull/2506
