This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27584 - SharedClassObject.readResolve accept just SharedClassObject
Summary: SharedClassObject.readResolve accept just SharedClassObject
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 27163 27164 27165 27595
  Show dependency tree
 
Reported: 2002-09-25 16:32 UTC by _ lkramolis
Modified: 2008-12-22 21:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch. (18.84 KB, patch)
2002-09-25 16:36 UTC, _ lkramolis
Details | Diff
Right suggested patch. (1.16 KB, patch)
2002-09-30 08:54 UTC, _ lkramolis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ lkramolis 2002-09-25 16:32:06 UTC
Currently, it is not possible to return from
<SharedClassObject-subtype>.readResolve()
something else than SharedClassObject.

It blocks possibility to change
"SystemOption"-settings to new bean-based settings
(not SystemOption subclass).
Comment 1 _ lkramolis 2002-09-25 16:34:25 UTC
Background:
<http://openide.netbeans.org/servlets/ReadMsg?msgId=382853&listName=dev>.
Comment 2 _ lkramolis 2002-09-25 16:36:02 UTC
Created attachment 7511 [details]
Suggested patch.
Comment 3 Jesse Glick 2002-09-29 14:48:56 UTC
Note: the suggested patch is for utilities module, not actually a
patch for this bug.
Comment 4 _ lkramolis 2002-09-30 08:54:49 UTC
Created attachment 7553 [details]
Right suggested patch.
Comment 5 _ lkramolis 2002-09-30 08:56:35 UTC
:-) Excuse the wrong patch. I have attached new, I hope correct, one.
Comment 6 Jaroslav Tulach 2002-09-30 09:43:16 UTC
I have patch together with a test.
Comment 7 Jaroslav Tulach 2002-09-30 09:46:14 UTC
SharedClassObject.java
new revision: 1.55

SharedClassObjectTest.java
new revision: 1.6
Comment 8 Marian Mirilovic 2002-10-11 12:26:33 UTC
Libor, could you verify this one? Thanks in advance.
Comment 9 _ lkramolis 2002-10-11 13:10:30 UTC
Verified.