Community
Participate
Working Groups
Steps: 1) Creat a project without a source folder and add a package. 2) Add a directory META-INF and populate it with files. A file 'manifest.mf' should (could) also be included. 3)Export to a jar. Note that the additional files (those not named 'manifest.mf') were not exported. ->20020212. JRT.
After another test I've found that the problem remains. Am reopening PR. 1)Create project with source folder. 2)create META-INF folder in source folder and populate with files including 'manifest.mf' 3)export to jar. Notice that the path names of files other than 'manifest.mf' are still incorrect. ->20020212. JRT.
General bug which was fixed: and now is back and results in strange behavior all over the place in JDT UI. e.g. create a Project with source folder 'src' 'TEST' can only be added via Navigator (creating a package fails, see attached log) ==> can't be seen in the Packages view create classs Foo in TEST with "package TEST;" ==> compiles without error but can't be seen in the Packages view Reason is that Java model does not accept all-uppercase names as Java package name and hence returns null if we ask the file for the package fragment. Moving to JCore. Please test your fix against the test case of this BR.
Created attachment 368 [details] .log
Verified the above scenario is fixed in 20020214 *** This bug has been marked as a duplicate of 9479 ***
I got the same problem (Java Model Exception: Java Model Status [Invalid name specified: HelloWorld]) when I tried to create an ICompilationUnit. I used the IPackageFragment.createCompilationUnit(String name, String contents, boolean force, IProgressMonitor monitor) method. Could this be the same bug?