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 73903 Details for
Bug 196354
ClassCastException in package binding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_196354_test.txt (text/plain), 2.23 KB, created by
Olivier Thomann
on 2007-07-16 16:59:17 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-07-16 16:59:17 EDT
Size:
2.23 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java,v >retrieving revision 1.127 >diff -u -r1.127 ASTConverterTestAST3_2.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java 16 Jul 2007 20:02:27 -0000 1.127 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java 16 Jul 2007 21:00:16 -0000 >@@ -119,7 +119,7 @@ > static { > // TESTS_NAMES = new String[] {"test0602"}; > // TESTS_RANGE = new int[] { 670, -1 }; >-// TESTS_NUMBERS = new int[] { 680 }; >+// TESTS_NUMBERS = new int[] { 681 }; > } > public static Test suite() { > return buildModelTestSuite(ASTConverterTestAST3_2.class); >@@ -9339,4 +9339,19 @@ > final List modifiers = typeDeclaration.modifiers(); > assertEquals("Wrong size", 1, modifiers.size()); > } >+ >+ /** >+ * http://dev.eclipse.org/bugs/show_bug.cgi?id=196354 >+ */ >+ public void test0681() throws JavaModelException { >+ ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "Sample", "Sample.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ >+ ASTNode node = runConversion(AST.JLS3, sourceUnit, true); >+ assertTrue("Not a compilation unit", node.getNodeType() == ASTNode.COMPILATION_UNIT); //$NON-NLS-1$ >+ CompilationUnit compilationUnit = (CompilationUnit) node; >+ assertProblemsSize(compilationUnit, 0); >+ final PackageDeclaration packageDeclaration = compilationUnit.getPackage(); >+ final IPackageBinding packageBinding = packageDeclaration.resolveBinding(); >+ assertNotNull("No binding", packageBinding); >+ assertEquals("Wrong name", "Sample", packageBinding.getName()); >+ } > } >Index: workspace/Converter/src/Sample/Sample.java >=================================================================== >RCS file: workspace/Converter/src/Sample/Sample.java >diff -N workspace/Converter/src/Sample/Sample.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Converter/src/Sample/Sample.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+package Sample; >+ >+class Sample {}
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 196354
:
73902
| 73903