1 |
> Such packages will then be marked with RDEPEND=">=virtual/jre-1.5" and |
2 |
> emerging them will pull in a JRE that supports the needed features (if |
3 |
> not already installed). I don't see a problem there. |
4 |
|
5 |
No, that's not right either. |
6 |
|
7 |
The code in the example compiles with BOTH - JDK 1.4 and JDK 1.5. |
8 |
|
9 |
But the generated bytecode is different: |
10 |
|
11 |
- compiled with JDK 1.5, the method StringBuffer.append(CharSequence) is |
12 |
called. (No matter, whether "-target 1.4" has been used, or not) |
13 |
- compiled with JDK 1.4, the method StringBuffer.append(Object) is called. |