In the future, could someone create a Windows virus that can infect a Mac running OSX???
Depends on how it's written.
1) If it's written specifically as Windows malware (virus, Trojan, worm), then absolutely, 100% no. Nor will it ever happen. Compiled apps are written for the intended OS. Malware written for Windows cannot in any way run directly under OS X any more than any other Windows app can. Nor will a Windows virus run in Linux. It's the same reason you can't copy a Mac app to Windows and expect it to run. It doesn't matter they all run on Intel CPUs. Each app has to be written and compiled for the specific OS it's intended for, and that's the only OS it will run under.
2) Java attacks can run under both, since Java is, and has always been intended as a write once, run under many programming language. Someone managed to do that once to the Mac OS a couple of years ago by having the attack run from a web browser with Java enabled (not JavaScript, which is completely different, despite the very similar name). Any up to date system has long been patched against it. By default, Java is now disabled in Safari, and most other browsers. Very, very few sites need it on in order to function. Also by default, Java is no longer even installed in OS X. You have to go out of your way to install it, and then only if you have a specific need to install it in the first place.