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 22182 Details for
Bug 97108
[1.5][compiler] NullPointerException encountered while running Java Builder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Batch compiler test case that reproduces the problem
org.eclipse.jdt.core.tests.compiler_01.txt (text/plain), 6.74 KB, created by
Maxime Daniel
on 2005-06-01 13:38:18 EDT
(
hide
)
Description:
Batch compiler test case that reproduces the problem
Filename:
MIME Type:
Creator:
Maxime Daniel
Created:
2005-06-01 13:38:18 EDT
Size:
6.74 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v >retrieving revision 1.17 >diff -u -r1.17 BatchCompilerTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 1 Jun 2005 09:06:31 -0000 1.17 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 1 Jun 2005 17:36:15 -0000 >@@ -1562,6 +1562,218 @@ > "incorrect classpath: dummy\n", > false); > } >+// NullPointerException encountered while running Java Builder - https://bugs.eclipse.org/bugs/show_bug.cgi?id=97108 >+// The case that works >+public void _test034(){ >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.ArrayList;\n" + >+ "import java.util.HashMap;\n" + >+ "import java.util.List;\n" + >+ "import java.util.Map;\n" + >+ "\n" + >+ "public class X<T> {\n" + >+ " static private Map<String, XX> m1 = new HashMap<String, XX>();\n" + >+ " private List<XX<T>> m2 = new ArrayList<XX<T>>();\n" + >+ " static protected XX foo()\n" + >+ " {\n" + >+ " return null;\n" + >+ " }\n" + >+ " static public abstract class XX<TT>\n" + >+ " {\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ true); >+ this.runConformTest( >+ new String[] { >+ "Y.java", >+ "public class Y extends X<Object> \n" + >+ "{ \n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "Y.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -cp \"" + OUTPUT_DIR + File.separator + "\"" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ false); >+} >+// NullPointerException encountered while running Java Builder - https://bugs.eclipse.org/bugs/show_bug.cgi?id=97108 >+// The case that fails >+public void _test035(){ >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.ArrayList;\n" + >+ "import java.util.HashMap;\n" + >+ "import java.util.List;\n" + >+ "import java.util.Map;\n" + >+ "\n" + >+ "public class X<T> {\n" + >+ " static private Map<String, XX> m1 = new HashMap<String, XX>();\n" + >+ " private List<XX> m2 = new ArrayList<XX>();\n" + >+ " static protected XX foo()\n" + >+ " {\n" + >+ " return null;\n" + >+ " }\n" + >+ " static public abstract class XX<TT>\n" + >+ " {\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ true); >+ this.runConformTest( >+ new String[] { >+ "Y.java", >+ "public class Y extends X<Object> \n" + >+ "{ \n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "Y.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -cp \"" + OUTPUT_DIR + File.separator + "\"" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ false); >+} >+// NullPointerException encountered while running Java Builder - https://bugs.eclipse.org/bugs/show_bug.cgi?id=97108 >+// Minimizing the test case >+public void _test036(){ >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.HashMap;\n" + >+ "import java.util.Map;\n" + >+ "\n" + >+ "public class X<T> {\n" + >+ " static private Map<String, XX> m1 = new HashMap<String, XX>();\n" + >+ " static protected XX foo()\n" + >+ " {\n" + >+ " return null;\n" + >+ " }\n" + >+ " static public abstract class XX<TT>\n" + >+ " {\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ true); >+ this.runConformTest( >+ new String[] { >+ "Y.java", >+ "public class Y extends X<Object> \n" + >+ "{ \n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "Y.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -cp \"" + OUTPUT_DIR + File.separator + "\"" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ false); >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.ArrayList;\n" + >+ "import java.util.List;\n" + >+ "\n" + >+ "public class X<T> {\n" + >+ " private List<XX> m2 = new ArrayList<XX>();\n" + >+ " static protected XX foo()\n" + >+ " {\n" + >+ " return null;\n" + >+ " }\n" + >+ " static public abstract class XX<TT>\n" + >+ " {\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ true); >+ this.runConformTest( >+ new String[] { >+ "Y.java", >+ "public class Y extends X<Object> \n" + >+ "{ \n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "Y.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -cp \"" + OUTPUT_DIR + File.separator + "\"" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ false); >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.ArrayList;\n" + >+ "import java.util.HashMap;\n" + >+ "import java.util.List;\n" + >+ "import java.util.Map;\n" + >+ "\n" + >+ "public class X<T> {\n" + >+ " static private Map<String, XX> m1 = new HashMap<String, XX>();\n" + >+ " private List<XX> m2 = new ArrayList<XX>();\n" + >+ " static public abstract class XX<TT>\n" + >+ " {\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ true); >+ this.runConformTest( >+ new String[] { >+ "Y.java", >+ "public class Y extends X<Object> \n" + >+ "{ \n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "Y.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -cp \"" + OUTPUT_DIR + File.separator + "\"" >+ + " -proceedOnError -referenceInfo" >+ + " -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "", >+ false); >+} > public static Class testClass() { > return BatchCompilerTest.class; > }
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 97108
:
21934
| 22182