Community
Participate
Working Groups
Build 20020319 1. Create source folder 'src.jar' in project 'Test' 2. Select this source folder 3. New->Package 4. Enter 'p' Observe: An error message says that 'Test/src.jar' is a JAR archive
validation uses IPackageFragmentRoot.isArchive() which returns true even this is a source folder move to jcore
I believe the JavaModel is also often checking the path termination as well, as opposed to a systematic file/resource access.
Fixed by checking if the type of the resource is a FILE when the jar package fragment root is created. If it is a FOLDER, a regular root is created even if the resource name ends with .jar.