[JDT] Setting Java 1.5 Compilance of a Java-Project Programmatically [message #280433] |
Thu, 03 February 2005 08:25 |
Eclipse User |
|
|
|
Dear Newsgroup,
currently I am facing the following Problem.
Context:
The Java 1.5 language standard introduces generics.
The implementation of generics is based on a new
language construct called type-parameter.
To be able to create a unit-test to test for the
correct handling of type-parameters, a java project
has to compiled against the Java 1.5 standard when
it comes to the resolving of bindings.
Problem:
How can I set Java 1.5 compilance (JST3)
programmatically?
Some Notes:
* If you parse a compilation unit belonging to a
Java 1.4 project using unsupported genercs,
you get ITypeBindings when resolving a type.
* Resolving:
<T> void myMethod(T param) {}
leads to a ITypeBinding towards a type 'T'.
Thanks for taking care,
Martin (Kersten)
|
|
|
Powered by
FUDForum. Page generated in 0.03198 seconds