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 25567 Details for
Bug 99662
[1.5] JavaModel returns inexistent IType for package-info ICompilationUnits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test case added to SourceElementParserTests to verify the fix
v00-compiler.txt (text/plain), 1.80 KB, created by
Frederic Fusier
on 2005-08-02 13:10:22 EDT
(
hide
)
Description:
Test case added to SourceElementParserTests to verify the fix
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2005-08-02 13:10:22 EDT
Size:
1.80 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/parser/SourceElementParserTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/SourceElementParserTest.java,v >retrieving revision 1.26 >diff -u -r1.26 SourceElementParserTest.java >--- src/org/eclipse/jdt/core/tests/compiler/parser/SourceElementParserTest.java 7 Mar 2005 14:29:17 -0000 1.26 >+++ src/org/eclipse/jdt/core/tests/compiler/parser/SourceElementParserTest.java 2 Aug 2005 17:07:42 -0000 >@@ -12,6 +12,8 @@ > > import java.util.Locale; > >+import junit.framework.Test; >+ > import org.eclipse.jdt.core.compiler.IProblem; > import org.eclipse.jdt.core.tests.util.AbstractCompilerTest; > import org.eclipse.jdt.internal.compiler.ISourceElementRequestor; >@@ -38,6 +40,12 @@ > super(testName); > this.source = source; > } >+static { >+// TESTS_NUMBERS = new int[] { 99662 }; >+} >+public static Test suite() { >+ return buildTestSuite(SourceElementParserTest.class); >+} > /** > * acceptConstructorReference method comment. > */ >@@ -5102,7 +5110,7 @@ > " java.lang.Object(0)\n" + > "}"; > >- String testName = "test01: full parse"; >+ String testName = "test76: full parse"; > fullParse(s,testName); > > assertEquals( >@@ -5136,4 +5144,20 @@ > expectedUnitToString, > currentType.toString()); > } >+/** >+ * Bug 99662:[1.5] JavaModel returns inexistent IType for package-info ICompilationUnits >+ * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=99662" >+ * >+ */ >+public void testBug99662() { >+ >+ String s = >+ "@Deprecated\n" + >+ "package p;\n"; >+ >+ String testName = "package-info.java"; >+ fullParse(s,testName); >+ >+ assertNull("package-info.java file should not have ANY type!", this.currentType); >+} > }
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 99662
:
22965
| 25567