Re: [cciug] Java and SCM issues: (1) Summary of what I know (2) What can you add ?

From: Eric Friedman (ericf@babycenter.com)
Date: Thu Jan 13 2000 - 19:43:45 EST


In message <200001140035.SAA27143@x24.deja.com>, blavagna@my-deja.com writes:
: - Java (enforces ???) a rule that each ".java" file contain only one
: class.

Not true. You may have multiple classes in a file, and classes may
contain other classes (Java's "inner classes"). The compiler outputs
separate .class files for these, which makes DO tracking a real treat.
Inner classes are named according to the depth of their containment.
That is,

class Foo { class Bar {} }
produces
Foo.class
Foo$Bar.class

and
class Foo { class Bar { class Baz {} } }
produces
Foo.class
Foo$Bar.class
Foo$Bar$Baz

Anonymous inner classes further complicate things by yielding class
files with names like

Foo$2.class

Keep in mind that Java development projects may also yield other file
types as well, from which java source is generated by tools. .sqlj
files are one example; .jj and .jjt files are another.

Oh, and don't forget applications that use's Java's Remote Method Invocation
APIs. the RMI compiler generates a Foo_Stub.class and a Foo_Skel.class
for the subclass of java.rmi.Remote called Foo.

Eric
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:28 EDT