Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 60392 Details for
Bug 170595
[batch][compiler] BatchCompilerTest#test024 is no more significant
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_170595.txt (text/plain), 7.31 KB, created by
Olivier Thomann
on 2007-03-07 14:30:44 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-03-07 14:30:44 EST
Size:
7.31 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v >retrieving revision 1.108 >diff -u -r1.108 BatchCompilerTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 5 Mar 2007 11:45:52 -0000 1.108 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 7 Mar 2007 19:22:13 -0000 >@@ -36,9 +36,9 @@ > > static { > // TESTS_NAMES = new String[] { "test000" }; >-// TESTS_NUMBERS = new int[] { 59 }; >+// TESTS_NUMBERS = new int[] { 24 }; > // TESTS_RANGE = new int[] { 107, -1 }; >-} >+ } > public BatchCompilerTest(String name) { > super(name); > } >@@ -1116,8 +1116,8 @@ > " maskedCatchBlock + hidden catch block\n" + > " nls string literal lacking non-nls tag //$NON-NLS-<n>$\n" + > " noEffectAssign + assignment without effect\n" + >- " null potential missing or redundant null check\n" + >- " nullDereference missing null check\n" + >+ " null potential missing or redundant null check\n" + >+ " nullDereference missing null check\n" + > " over-ann missing @Override annotation\n" + > " paramAssign assignment to a parameter\n" + > " pkgDefaultMethod + attempt to override package-default method\n" + >@@ -1264,7 +1264,7 @@ > " <option key=\"org.eclipse.jdt.core.compiler.problem.parameterAssignment\" value=\"ignore\"/>\n" + > " <option key=\"org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment\" value=\"ignore\"/>\n" + > " <option key=\"org.eclipse.jdt.core.compiler.problem.potentialNullReference\" value=\"ignore\"/>\n" + >- " <option key=\"org.eclipse.jdt.core.compiler.problem.rawTypeReference\" value=\"warning\"/>\n" + >+ " <option key=\"org.eclipse.jdt.core.compiler.problem.rawTypeReference\" value=\"warning\"/>\n" + > " <option key=\"org.eclipse.jdt.core.compiler.problem.redundantNullCheck\" value=\"ignore\"/>\n" + > " <option key=\"org.eclipse.jdt.core.compiler.problem.specialParameterHidingField\" value=\"disabled\"/>\n" + > " <option key=\"org.eclipse.jdt.core.compiler.problem.staticAccessReceiver\" value=\"warning\"/>\n" + >@@ -1731,28 +1731,32 @@ > } > // https://bugs.eclipse.org/bugs/show_bug.cgi?id=88364 - explicit empty -extdirs removes extensions > public void test024(){ >+ if (!System.getProperty("java.vm.vendor").equals("Sun Microsystems Inc.")) return; >+ /* this tests is using Sun vm layout. The type sun.net.spi.nameservice.dns.DNSNameService >+ * is located in the ext dir. >+ */ > this.runNegativeTest( >- new String[] { >- "X.java", >- "/** */\n" + >- "public class X {\n" + >- " my.pkg.Zork dummy;\n" + >- "}", >- }, >- "\"" + OUTPUT_DIR + File.separator + "X.java\"" >- + " -extdirs \"\"" >- + " -1.5 -g -preserveAllLocals" >- + " -proceedOnError -referenceInfo" >- + " -d \"" + OUTPUT_DIR + "\" ", >- "", >- "----------\n" + >- "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n" + >- " my.pkg.Zork dummy;\n" + >- " ^^\n" + >- "my cannot be resolved to a type\n" + >- "----------\n" + >- "1 problem (1 error)", >- true); >+ new String[] { >+ "X.java", >+ "/** */\n" + >+ "public class X {\n" + >+ " sun.net.spi.nameservice.dns.DNSNameService dummy;\n" + >+ "}", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -extdirs \"\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\" ", >+ "", >+ "----------\n" + >+ "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n" + >+ " sun.net.spi.nameservice.dns.DNSNameService dummy;\n" + >+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + >+ "sun.net.spi.nameservice.dns cannot be resolved to a type\n" + >+ "----------\n" + >+ "1 problem (1 error)", >+ true); > } > // https://bugs.eclipse.org/bugs/show_bug.cgi?id=88364 - cumulative -extdirs extends the classpath > public void test025(){ >@@ -5199,11 +5203,11 @@ > this.runConformTest( > new String[] { > "X.java", >- "public class X {\n" + >- " void foo() {\n" + >- " Object o = null;\n" + >- " o.toString();\n" + >- " }\n" + >+ "public class X {\n" + >+ " void foo() {\n" + >+ " Object o = null;\n" + >+ " o.toString();\n" + >+ " }\n" + > "}"}, > "\"" + OUTPUT_DIR + File.separator + "X.java\"" > + " -1.5 -g -preserveAllLocals" >@@ -5211,13 +5215,13 @@ > + " -cp " + getJCEJar() > + " -warn:+nullDereference" > + " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", >- "", >- "----------\n" + >- "1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 4)\n" + >- " o.toString();\n" + >- " ^\n" + >- "Null pointer access: The variable o can only be null at this location\n" + >- "----------\n" + >+ "", >+ "----------\n" + >+ "1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 4)\n" + >+ " o.toString();\n" + >+ " ^\n" + >+ "Null pointer access: The variable o can only be null at this location\n" + >+ "----------\n" + > "1 problem (1 warning)", > true); > } >@@ -5228,11 +5232,11 @@ > this.runConformTest( > new String[] { > "X.java", >- "public class X {\n" + >- " void foo() {\n" + >- " Object o = null;\n" + >- " if (o == null) {}\n" + >- " }\n" + >+ "public class X {\n" + >+ " void foo() {\n" + >+ " Object o = null;\n" + >+ " if (o == null) {}\n" + >+ " }\n" + > "}"}, > "\"" + OUTPUT_DIR + File.separator + "X.java\"" > + " -1.5 -g -preserveAllLocals" >@@ -5240,13 +5244,13 @@ > + " -cp " + getJCEJar() > + " -warn:+null" > + " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", >- "", >- "----------\n" + >- "1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 4)\n" + >- " if (o == null) {}\n" + >- " ^\n" + >- "Redundant null check: The variable o can only be null at this location\n" + >- "----------\n" + >+ "", >+ "----------\n" + >+ "1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 4)\n" + >+ " if (o == null) {}\n" + >+ " ^\n" + >+ "Redundant null check: The variable o can only be null at this location\n" + >+ "----------\n" + > "1 problem (1 warning)", > true); > } >@@ -5257,11 +5261,11 @@ > this.runConformTest( > new String[] { > "X.java", >- "public class X {\n" + >- " void foo() {\n" + >- " Object o = null;\n" + >- " if (o == null) {}\n" + >- " }\n" + >+ "public class X {\n" + >+ " void foo() {\n" + >+ " Object o = null;\n" + >+ " if (o == null) {}\n" + >+ " }\n" + > "}"}, > "\"" + OUTPUT_DIR + File.separator + "X.java\"" > + " -1.5 -g -preserveAllLocals" >@@ -5269,7 +5273,7 @@ > + " -cp " + getJCEJar() > + " -warn:+nullDereference" > + " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", >-"", >+"", > "", > true); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 170595
: 60392