J
JavaEnquirer
I've set the following compliance settings in Eclipse:
Compiler compliance level: 1.3
Generate class file compatibility: 1.3
Source file compatibility: 1.3
My JRE system library is 1.5.
However, when I compile a class with the lines:
BitSet bitset ...
bitset.clear();
I get no errors! The clear() method wasn't introduced until 1.4. I
thought that by setting the compliance levels lower to 1.3 ( even
though 1.5 is my JRE system library ) would cause Eclipse to work as if
my JRE system library was 1.3!
What have I missed?
Compiler compliance level: 1.3
Generate class file compatibility: 1.3
Source file compatibility: 1.3
My JRE system library is 1.5.
However, when I compile a class with the lines:
BitSet bitset ...
bitset.clear();
I get no errors! The clear() method wasn't introduced until 1.4. I
thought that by setting the compliance levels lower to 1.3 ( even
though 1.5 is my JRE system library ) would cause Eclipse to work as if
my JRE system library was 1.3!
What have I missed?