Dead code detection warning also got enabled by default.
+
+* Compiler option ID: Reporting Dead Code.
+* When enabled, the compiler will issue an error or a warning if some non fatal dead code is detected. For instance, if (false) foo();
+* is not reported as truly unreachable code by the Java Language Specification. If this diagnostic is enabled, then the invocation of foo() is
+* going to be signaled as being dead code.
+* Option id:"org.eclipse.jdt.core.compiler.problem.deadCode"
+* Possible values:{ "error", "warning", "ignore" }
+* Default:"warning"
Problem Reports Fixed
-255970
+256882
+[compiler] Enable DeadCode detection by default
+ 255970
test tear down failed causing cascade of failures
207093
Perf: adding a new top-level package is slow if many source files exist
Index: batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties,v
retrieving revision 1.783
diff -u -r1.783 messages.properties
--- batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 26 Nov 2008 17:56:56 -0000 1.783
+++ batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 28 Nov 2008 12:23:53 -0000
@@ -242,7 +242,7 @@
\ compareIdentical + comparing identical expressions\n\
\ conditionAssign possible accidental boolean assignment\n\
\ constructorName + method with constructor name\n\
-\ deadCode dead code excluding trivial if (DEBUG) check\n\
+\ deadCode + dead code excluding trivial if (DEBUG) check\n\
\ dep-ann missing @Deprecated annotation\n\
\ deprecation + deprecation outside deprecated code\n\
\ discouraged + use of types matching a discouraged access rule\n\
Index: model/org/eclipse/jdt/core/JavaCore.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java,v
retrieving revision 1.632
diff -u -r1.632 JavaCore.java
--- model/org/eclipse/jdt/core/JavaCore.java 26 Nov 2008 17:56:55 -0000 1.632
+++ model/org/eclipse/jdt/core/JavaCore.java 28 Nov 2008 12:23:54 -0000
@@ -1006,7 +1006,7 @@
*