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 48534 - NetBeans 4.0 stomps on SCCS p.* files
Summary: NetBeans 4.0 stomps on SCCS p.* files
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 13:13 UTC by emcmanus
Modified: 2007-09-26 09:14 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 emcmanus 2004-09-06 13:13:32 UTC
NetBeans 4.0 does not have built-in support for
SCCS.  This is fine, but it should at least be
able to co-exist peacefully with SCCS.  Currently,
it does not.
The usual way to use SCCS is to create a
subdirectory called "SCCS" in every source
directory.  SCCS will put two kinds of files in
this subdirectory.  For a source file like
Thing.java, it will store the different versions
in a readonly file called "SCCS/s.Thing.java".
When the file is being edited, it will store
the version being edited in a writeable file
called "SCCS/p.Thing.java".  The problem is
that when NetBeans goes looking for Java
source files, it finds this SCCS/p.Thing.java
and inserts a package declaration in it!
So for example, in the package
com.example.whatsit, NetBeans will find the
file com/example/whatsit/SCCS/p.Thing.java
and insert a package declaration into it:
package com.example.whatsit.SCCS;

You can still use SCCS after this change, but
you will get warnings from it because it will
consider that the package declaration means
that some other version of the file is being
edited.

Without requiring NetBeans to have any hacky
special knowledge of SCCS, like avoiding
subdirectories called "SCCS", it could simply
consider that a file that has two dots in its
name (like p.Thing.java) cannot be a Java
source file, and ignore it.
Comment 1 emcmanus 2004-09-06 14:14:02 UTC
Re-reading this, I see it's a little bit misleading as the contents of
the p.Thing.java file.  It contains one line for every version of
Thing.java being edited, and essentially acts as a lock for those
versions.  Anyway, the key point is that NetBeans should not be
touching this file in any way.
Comment 2 Martin Entlicher 2004-09-15 11:46:02 UTC
Java module is responsible for touching this file. VCS modules can not
do anything with that.
Comment 3 Martin Matula 2004-09-19 16:19:49 UTC
As far as I remeber we fixed this some time ago. What build were you
using? Can you reproduce it in the current build?
Comment 4 Jan Becicka 2004-09-21 14:27:11 UTC
I cannot reproduce it in latest build. Please reopen this issue if you
are still able to reproduce it.