Bug 44662 - Should not validate unit/classfile handles upon creation
Summary: Should not validate unit/classfile handles upon creation
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 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-10 11:44 EDT by Philipe Mulet CLA
Modified: 2003-11-20 05:54 EST (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-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.