Bug 40606 - Unable to discard empty package if containing .class files
Summary: Unable to discard empty package if containing .class files
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-22 12:26 EDT by Philipe Mulet CLA
Modified: 2003-08-28 04:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-07-22 12:26:33 EDT
Build 3.0M2

Define Java project:

P
+-src/ (as source folder)
   +-out.pa 
      +-X.class   (any file named as such will do it)

Select package out.pa in package explorer and try to remove it.
It remains there, and no failure trace is dumped in log.
Comment 1 Jerome Lanneluc CLA 2003-07-23 09:54:42 EDT
DeleteResourceElementsOperation.deletePackageFragment(...) was passing 
file.getFileExtension() instead of file.getName() to Util.isClassFileName(...)

Fixed and added regression test DeleteTests.testDeletePackageFragment4()
Comment 2 David Audel CLA 2003-08-28 04:51:42 EDT
Verified.