Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Wrong compiler compliance level when exporting feature
Wrong compiler compliance level when exporting feature [message #156579] Thu, 29 April 2004 06:23
Eclipse UserFriend
Originally posted by: andreas.bungert.arcway.com

Hi,

I created a feature project in Eclipse Version 2.1.2 running on a 1.4.2 Java
VM. When I export this feaure using the Export button in the feature.xml
editor, eclipse creates the zip-file with the requested jars and ends with
saying, that there have been compile errors. The listed projects with
compile errors contain code where asserts are used.
When I deploy this feature to another eclipse instance also running on a
1.4.2 java VM, it canot be executed. It stops with

java.lang.Error: Unresolved compilation problem:
Invalid expression as statement

at a point, where the first assert statement occurs.

The code compiles and runs fine in my runtime-workspace. I have set the
compiler compliance level to 1.4. It looks like ant uses another
compiler compliance level. But I can't figure out what ant is doing? I cant
find the build file, ant creates during the build process.

Has anyone an idea, how I can configure ant to create the right code?

Thanks, Andreas


--
Dr. Andreas Bungert
ArcWay AG
Otto-Erich-Str. 15 - 14482 Potsdam
Tel. +49(331)2902539 Fax +49(331)2902570
mail: andreas.bungert@arcway.com
web: www.arcway.com
Previous Topic:Find fully qualified super type name
Next Topic:editor-tabs don't exceed 4 spaces - 3.0.0M6-linux-gtk
Goto Forum:
  


Current Time: Mon Jul 14 11:46:15 EDT 2025

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

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

Back to the top