Bug 199392 - [search] Type Dialog Error 'Items filtering ... Reason: Class file name must end with .class'
Summary: [search] Type Dialog Error 'Items filtering ... Reason: Class file name must ...
Status: VERIFIED DUPLICATE of bug 138184
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 235799 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-09 06:34 EDT by guard.cerberus CLA
Modified: 2008-06-10 03:25 EDT (History)
1 user (show)

See Also:


Attachments
Workspace demonstrating the problem (25.61 KB, application/zip)
2007-08-09 06:34 EDT, guard.cerberus CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description guard.cerberus CLA 2007-08-09 06:34:00 EDT
Created attachment 75745 [details]
Workspace demonstrating the problem

Build ID: I20070625-1500

Steps To Reproduce:
1. Open workspace (unzip test.zip) demonstrating the problem

2. Try to open MyClass (type 'M') - this fails with the described error
message


More information:
Error message in Type dialog

'Items filtering (Time of error: July 13, 2007 9:39:21 AM GMT+2:00) 
Reason:
Class file name must end with .class'


--------------------------------------------------------------------
See below .log file from the workspace 
--------------------------------------------------------------------

!ENTRY org.eclipse.core.jobs 4 2 2007-07-13 09:39:21.586
!MESSAGE An internal error occurred during: "Items filtering".
!STACK 0
java.lang.IllegalArgumentException: Class file name must end with .class
        at
org.eclipse.jdt.internal.core.PackageFragment.getClassFile(PackageFragment.java:188)
        at
org.eclipse.jdt.internal.core.search.TypeNameMatchRequestorWrapper.createTypeFromJar(TypeNameMatchRequestorWrapper.java:146)
        at
org.eclipse.jdt.internal.core.search.TypeNameMatchRequestorWrapper.acceptType(TypeNameMatchRequestorWrapper.java:108)
        at
org.eclipse.jdt.internal.core.search.BasicSearchEngine$2.acceptIndexMatch(BasicSearchEngine.java:767)
        at
org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.acceptMatch(InternalSearchPattern.java:45)
        at
org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.findIndexMatches(InternalSearchPattern.java:89)
        at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.findIndexMatches(MatchLocator.java:325)
        at
org.eclipse.jdt.internal.core.search.PatternSearchJob.search(PatternSearchJob.java:114)
        at
org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(PatternSearchJob.java:64)
        at
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:279)
        at
org.eclipse.jdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:778)
        at
org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames(SearchEngine.java:781)
        at
org.eclipse.jdt.internal.ui.dialogs.FilteredTypesSelectionDialog.fillContentProvider(FilteredTypesSelectionDialog.java:593)
        at
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.filterContent(FilteredItemsSelectionDialog.java:2059)
        at
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.internalRun(FilteredItemsSelectionDialog.java:2001)
        at
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.doRun(FilteredItemsSelectionDialog.java:1973)
        at
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.run(FilteredItemsSelectionDialog.java:1960)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Frederic Fusier CLA 2007-08-09 07:03:11 EDT
I'll investigate...
Comment 2 Frederic Fusier CLA 2007-08-09 07:18:21 EDT
Problem is while getting document path in InternalSearchPattern, it worngly assumes that the document belongs to an archive as the containerPath ends with ".jar"...
Comment 3 Frederic Fusier CLA 2007-08-09 12:29:00 EDT

*** This bug has been marked as a duplicate of bug 138184 ***
Comment 4 Eric Jodet CLA 2007-09-18 03:33:21 EDT
Verified for 3.4 M2 using build I20070917-0010.
Comment 5 Frederic Fusier CLA 2008-06-10 03:25:44 EDT
*** Bug 235799 has been marked as a duplicate of this bug. ***