Bug 11086

Summary: ClassFileCompilationUnit should implement IClassFile
Product: [Eclipse Project] JDT Reporter: Kai-Uwe Maetzel <kai-uwe_maetzel>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: blocker    
Priority: P3 CC: douglas.pollock
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Kai-Uwe Maetzel CLA 2002-03-11 06:07:38 EST
It is implementing ICompilationUnit.
Comment 1 Philipe Mulet CLA 2002-03-11 10:47:52 EST
This is the fake working copy for consistent usage of #getWorkingCopy.
Why do you want it to implement IClassfile ?
Comment 2 Philipe Mulet CLA 2002-03-12 08:55:40 EST
Ok to close ?
Comment 3 Kai-Uwe Maetzel CLA 2002-03-12 09:36:17 EST
A buffer factory registered with class files gets an ICompilationUnit as buffer 
owner passed into createBuffer. This is counter intuitive and does not allow 
access to the class file. JDT UI needs the class file to distinguish between 
class files in jars and those on the file system.
Comment 4 Philipe Mulet CLA 2002-03-13 13:21:49 EST
So what ? The API #getWorkingCopy() should answer an IWorkingCopy. A working 
copy doesn't know about classfiles. You had the classfile in your hands before 
asking for the working copy...

We could however have its #getOriginalElement() return the classfile... would 
it do the trick ?
Comment 5 Philipe Mulet CLA 2002-03-14 13:27:47 EST
Adding #getOriginalElement() implementation on ClassFileWorkingCopy
Comment 6 Philipe Mulet CLA 2002-03-19 10:22:28 EST
Closing
Comment 7 Tom Hofmann CLA 2005-09-28 11:54:13 EDT
*** Bug 110945 has been marked as a duplicate of this bug. ***