Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [JDT] Setting Java 1.5 Compilance of a Java-Project Programmatically
[JDT] Setting Java 1.5 Compilance of a Java-Project Programmatically [message #280433] Thu, 03 February 2005 08:25
Eclipse UserFriend
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)
Previous Topic:new TreeColumn and TreeViewer
Next Topic:TextEditor menu actions and migration from Eclipse 2.1.2 to Eclipse 3.0.1
Goto Forum:
  


Current Time: Sun May 11 16:14:27 EDT 2025

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top