I'm hoping someone can explain this to me, I have a piece of code that builds and runs fine in eclipse using v6 JRE, eclipse using v5 JRE and javac using a v5 compiler. However it won't build on the command line using v6 compiler.
Henry Wong wrote:
I'm hoping someone can explain this to me, I have a piece of code that builds and runs fine in eclipse using v6 JRE, eclipse using v5 JRE and javac using a v5 compiler. However it won't build on the command line using v6 compiler.
Taking a quick look at your code, I don't see how it can "build and run fine" in any of those JREs. At minimum, you have an abstract class that is trying to extend from itself. And you may have a name conflict in the concrete class as well -- although not sure if the second is an issue.
Henry
Adam Michalik wrote:I can confirm the problem - you are right Andrew, the code compiles and runs fine under Eclipse, but fails using Sun's compiler. Here's my test in a single file:
Consider Paul's rocket mass heater. |