[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-dev] [eclipse-build]Build N20030923 (Timestamp: 200309230010):Compile errors in build
|
This compiler bug is referenced as bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=40736 JDT compiler fails to
compile legitimate Java code.
It was addressed earlier in 3.0M4. Releng is likely using previous
milestone compiler version, thus explaining why this issue occurred.
In order to disable a test, you may simply rename it into _testMethod, with
a TODO next to it. This is how we exclude them in JDTCore.
Markus
Keller/Zurich/IBM@ To: eclipse-dev@xxxxxxxxxxx
IBMCH cc:
Sent by: Subject: Re: [eclipse-dev] [eclipse-build]Build N20030923 (Timestamp: 200309230010):Compile
eclipse-dev-admin@ errors in build
eclipse.org
09/23/2003 10:15
AM
Please respond to
eclipse-dev
Sonia, what compiler is used for nightly builds? And with what compiler
flags?
The compiler seems to misinterpret the JLS section about unreachable code
in 'if'-statements.
We will temporarily fix the issue for the upcoming I-build.
Thanks,
Markus
P.S. here's the offending code:
public class ChangeSignatureTests {
//...
private static final boolean RUN_CONSTRUCTOR_TEST = true;
//...
public void testAll47()throws Exception{
if (true) {
printTestDisabledMessage("disabled: see PR:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=43444");
return;
}
if (! RUN_CONSTRUCTOR_TEST){
printTestDisabledMessage("disabled for
constructors for now");
return;
}
String[] signature= {}; //unreachable, but *not* by
definition in JLS-2.0
//...
}
//...
public void printTestDisabledMessage(String s) {
System.out.println(s);
}
}
sonia_dimitrov@xxxxxxxxxx
Sent by: eclipse-dev-admin@xxxxxxxxxxx
2003-09-23 07:45
Please respond to
eclipse-dev@xxxxxxxxxxx
To
eclipse-dev@xxxxxxxxxxx
cc
Subject
[eclipse-dev] [eclipse-build]Build N20030923 (Timestamp:
200309230010):Compile errors in build
Build N20030923 (Timestamp: 200309230010): Compile errors in build. See
attached compile logs.
####
/builds/nightly/src/N-N20030923-200309230010/compilelogs/plugins/org.eclipse.jdt.ui.tests.refactoring_3.0.0/refactoringtests.jar.bin.log
has been removed from this note on September 23, 2003 by Philippe P Mulet