Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Did you notice problem with export


The fix suggested is correct, but just to clarify:
The only known problem to do with this in 3.2 was bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=153778. (This affects export but not headless build, it is fixed in 3.2.1)
Bug 128116 is mostly about usability and the fact that people seem to have a hard time setting this up correctly.

In this case, setting jre.compilation.profile would be a workaround for bug 153778.  The default source/target levels for J2SE-1.4 are 1.3/1.2, so code that uses asserts does need to set the javacSource/javacTarget properties.

See the help page http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tasks/pde_compilation_env.htm for some details.

-Andrew



"Leherbauer, Anton" <Anton.Leherbauer@xxxxxxxxxxxxx>
Sent by: cdt-dev-bounces@xxxxxxxxxxx

10/02/2006 08:34 AM

Please respond to
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

To
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>
cc
Subject
RE: [cdt-dev] Did you notice problem with export





Hi,

I think this is due to a PDE bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=128116

The solution is to add the lines

jre.compilation.profile=""> javacSource=1.4
javacTarget=1.4

to the build.properties file.

Toni

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Przemek Tomaszewski
> Sent: Monday, October 02, 2006 11:51 AM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Did you notice problem with export
>
> Hi,
>
>   I've observed that exporting CDT plugins (from HEAD on eclipse
> 3.2.1) causes compilation errors during 'export build'.  Looking into
> 'logs.zip' tells me that 1.3 compiler is used instead of 1.4 (project
> settings are correct):
>
> Example content of error file:
> # 02.10.06 11:08:18 CEST
> # Eclipse Java Compiler v_677_R32x, 3.2.1 release, Copyright IBM Corp
> 2000, 2006. All rights reserved.
> ----------
> 1. WARNING in
> D:\workspace_cdt\org.eclipse.cdt.ui\src\org\eclipse\cdt\intern
> al\ui\InvisibleCharacterPainter.java
> (at line 158)
>                  assert text.length() == length;
>                  ^^^^^^
> 'assert' should not be used as an identifier, since it is a reserved
> keyword from source level 1.4 on
> ----------
> 2. ERROR in
> D:\workspace_cdt\org.eclipse.cdt.ui\src\org\eclipse\cdt\intern
> al\ui\InvisibleCharacterPainter.java
> (at line 158)
>                  assert text.length() == length;
>                             ^
> Syntax error on token ".", = expected
>
>
> Do you know what is going on?
>
> Best regards,
>
> Przemek Tomaszewski
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top