Bug 44662

Summary: Should not validate unit/classfile handles upon creation
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-10-10 11:44:31 EDT
Build 20031009

Upon creation, JavaCore.create(...) for unit and classfile is validating the 
file name to see if it is a legite identifier.

When using IPackageFragment.getCompilation(...) or getClassFile(...) no 
validation occurs until the element is opened.

JavaCore handle creation methods should consistently tolerate ill-formed 
handles. Note that performance wise, the validation is quite expensive for 
customers.

Also see bug 44443
Comment 1 Philipe Mulet CLA 2003-10-10 12:00:46 EDT
Removed validation from JavaCore.create methods. Also remove the prefix (.java 
or .class) check in various places where it was redundant.

Fixed, will release after M4 is declared
Comment 2 Philipe Mulet CLA 2003-10-10 17:55:40 EDT
*** Bug 44580 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2003-10-15 07:39:47 EDT
Comment #2 was wrong.
Comment 4 David Audel CLA 2003-11-20 05:54:27 EST
Verified.