Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » warnings in example project
warnings in example project [message #26495] Thu, 12 July 2007 17:49 Go to next message
Eclipse User
Originally posted by: axelDOTazertyA.TlaposteDO.Tnet

Using Eclipse Europa (Windows XP, with Sun JDK 6 update 1), I m
following the example in Ibm Developer Works website, I get the
following 4 warnings (during automatic compilation, I guess) juste
after the creation of the project.


HashMap is a raw type. References to generic type HashMap<K,V> should
be parameterized Transformation/jet2java/org/eclipse/jet/compiled
_jet_transformation.java line 70

Map is a raw type. References to generic type Map<K,V> should be
parameterized Transformation/jet2java/org/eclipse/jet/compiled
_jet_transformation.java line 48 1184238926390 13

no valid properties files exist in the localization directory
specified Transformation/META-INF MANIFEST.MF line 6 1184238926671 16

Type safety: The method put(Object, Object) belongs to the raw type Map.
References to generic type Map<K,V> should be parameterized
Transformation/jet2java/org/eclipse/jet/compiled
_jet_transformation.java line 65 1184238926390 14


Maybe these are known bugs (or maybe even not bug at all )...

Regards
Re: warnings in example project [message #26946 is a reply to message #26495] Tue, 17 July 2007 10:00 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Axel:

JET generates code that is compatible with Java 2 (ie. Java 1.4), so it does
not use Java generics. Java 5 & 6 issue warnings about this. One possibility
it to change Execution environment of the JET plug-in to J2SE-1.4. The steps
to do this:

1) Open plugin.xml or META-INF/MANIFEST.MF in the 'Plug-in Manifest Editor'
2) On the General tab, click the 'Add' button in the Execution Environment
area
3) Select 'J2SE-1.4', and click OK.
4) Click the 'Update the classpath settings' link (which has the side effect
of saving).

This should get ride of all the warnings but the one in MANIFEST.MF. To
eliminate that, you'd either have to remove the Bundle-Localization header
from MANIFEST.MF, or create a plugin.properties file.

I have created bug 196814
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=196814) that proposes an
enhancement that would eliminate these warnings.

Paul

"Axel" <axelDOTazertyA@TlaposteDO.Tnet> wrote in message
news:f767l6$bf3$1@build.eclipse.org...
> Using Eclipse Europa (Windows XP, with Sun JDK 6 update 1), I m
> following the example in Ibm Developer Works website, I get the
> following 4 warnings (during automatic compilation, I guess) juste after
> the creation of the project.
>
>
> HashMap is a raw type. References to generic type HashMap<K,V> should
> be parameterized Transformation/jet2java/org/eclipse/jet/compiled
> _jet_transformation.java line 70
>
> Map is a raw type. References to generic type Map<K,V> should be
> parameterized Transformation/jet2java/org/eclipse/jet/compiled
> _jet_transformation.java line 48 1184238926390 13
>
> no valid properties files exist in the localization directory
> specified Transformation/META-INF MANIFEST.MF line 6 1184238926671 16
>
> Type safety: The method put(Object, Object) belongs to the raw type Map.
> References to generic type Map<K,V> should be parameterized
> Transformation/jet2java/org/eclipse/jet/compiled
> _jet_transformation.java line 65 1184238926390 14
>
>
> Maybe these are known bugs (or maybe even not bug at all )...
>
> Regards
Previous Topic:namespace support for JET Xpaths yet?
Next Topic:M2T/Jet in Eclipse Europa ?
Goto Forum:
  


Current Time: Sat Aug 30 00:37:49 EDT 2014

Powered by FUDForum. Page generated in 0.01806 seconds