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 1544 - Interaction of filesystem.properties with crash recovery & VC?
Summary: Interaction of filesystem.properties with crash recovery & VC?
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-04-16 04:15 UTC by Jesse Glick
Modified: 2008-12-22 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-04-16 04:15:15 UTC
filesystem.attributes potentially could be a pain for users, since it hides some information in a binary format; cf. plans to use XML for .form files.

Suggestions:

- have DefaultAttributes store attributes in a partially text format. Would just need to make DefaultAttributes.Table externalizable, I guess, and implement it. E.g.:

foo.java:NbWhateverAttribute=Lcom.netbeans.ide.execution.ProcessExecutor;<DEADBEEFCAFEBABE>
foo.gif:NbAnotherAttr=Lcom.netbeans.impl.FooClass;[<FEED666BEE>

I.e. first file name with suffix, `:`, attribute name as string, `=`, name of class of attribute in VM format (ignored when reading--informational only, so users can get an idea of what is there if th
ey must), `<`, hex escape of serialized form, `>`, newline.

At least this would allow users to kill lines they knew were corrupting something, without wrecking all the other attributes. E.g. if an uninstalled module left attributes corresponding to unavailable
 classes. Using an explicit line-by-line read would also allow the DefaultAttributes impl to ignore any lines which could not be correctly deserialized, a nice side effect.

- make sure that VC filesystems are able to keep track of attributes somehow, if this is not already the case. Maybe they shouldn`t--then each checked-out copy of a filesystem would need to have thing
s like the executor set from scratch, though. Could be an option. If they are stored, a text format like suggested for DefaultAttributes should probably be used.


[Jarda says XML format possible, but super-slow]
Comment 1 Jesse Glick 2000-11-30 19:01:59 UTC
Fixed a while ago with .nbattrs files in 3.1 and later.
Comment 2 pzajac 2003-02-12 12:34:56 UTC
seems fine
Comment 3 Quality Engineering 2003-07-01 16:08:54 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.