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 26309 Details for
Bug 101228
JME on code assist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch101228_org.eclipse.jdt.core.tests.model.txt (text/plain), 2.06 KB, created by
Jerome Lanneluc
on 2005-08-19 11:52:27 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-08-19 11:52:27 EDT
Size:
2.06 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/ClassFileTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClassFileTests.java,v >retrieving revision 1.11 >diff -u -r1.11 ClassFileTests.java >--- src/org/eclipse/jdt/core/tests/model/ClassFileTests.java 23 Feb 2005 02:58:37 -0000 1.11 >+++ src/org/eclipse/jdt/core/tests/model/ClassFileTests.java 19 Aug 2005 15:50:32 -0000 >@@ -10,6 +10,7 @@ > *******************************************************************************/ > package org.eclipse.jdt.core.tests.model; > >+import org.eclipse.core.runtime.CoreException; > import org.eclipse.jdt.core.*; > import org.eclipse.jdt.core.IJavaProject; > import org.eclipse.jdt.core.IPackageFragmentRoot; >@@ -24,8 +25,16 @@ > super(name); > } > >+ // Use this static initializer to specify subset for tests >+ // All specified tests which do not belong to the class are skipped... >+ static { >+ // TESTS_PREFIX = "testBug"; >+ // TESTS_NAMES = new String[] { "testTypeParameter" }; >+ // TESTS_NUMBERS = new int[] { 13 }; >+ // TESTS_RANGE = new int[] { 16, -1 }; >+ } > public static Test suite() { >- return new Suite(ClassFileTests.class); >+ return buildTestSuite(ClassFileTests.class); > } > > public void setUpSuite() throws Exception { >@@ -228,6 +237,21 @@ > } > > /* >+ * Ensure that opening a type parameter when its parent has not been open yet >+ * doesn't throw a JavaModelException >+ * (regression test for bug 101228 JME on code assist) >+ */ >+ public void testTypeParameter() throws CoreException { >+ IClassFile classFile = this.jarRoot.getPackageFragment("generic").getClassFile("X.class"); >+ ITypeParameter typeParameter = classFile.getType().getTypeParameter("T"); >+ classFile.close(); >+ assertStringsEqual( >+ "Unexpected bounds", >+ "java.lang.Object\n", >+ typeParameter.getBounds()); >+ } >+ >+ /* > * Ensure that a method with varargs has the AccVarargs flag set. > */ > public void testVarargs() throws JavaModelException {
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 101228
:
26308
| 26309