Hi Ulf, thanks for the reply.
The compiler can't possibly strip out code, since then you'd be left with a non-functional program
Where I said I thought the compiler would strip out the 1.5 code, I really meant
convert it e.g.
would be converted to something like
but it looks like this is not the case.
Anyway, I think what you are saying is that I can only use the source = "1.3" parameter where the source code does not actually include any of the new syntax or APIs introduced in 1.4 or 1.5 - is that right?
But since the compiler now generates class files that can run on 1.3, your code needs to check the version at runtime, and make sure it doesn't call 1.4 and 5 methods when running on 1.3.
Not sure what you mean here - if the code calls 1.5 methods then surely it wouldn't compile in the first place when a source of 1.3 is specified?