i found the following kinds of import statement.
for example, if A.java want to import the class B.C.D. but it write
the import statement like this:
import C.D;
which means B is omitted. the project is build by maven, does it
legal? why?
>i found the following kinds of import statement.
Where? Got an URL to this source*?
* (Or it's JavaDocs, build file..)
>for example, if A.java want to import the class B.C.D. but it write
>the import statement like this:
[quoted text clipped - 3 lines]
>which means B is omitted. the project is build by maven, does it
>legal? why?
Sounds like complete rot to me. But then, I am not
confident that you are posting the correct details,
so (my suggestion is) try stopping using this 'A',
'B', 'C'.. rubbish and tell us the actual class/package
names involved.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
>for example, if A.java want to import the class B.C.D. but it write
>the import statement like this:
It would violate sun naming conventions to call a class B.C.D.
see http://mindprod.com/jgloss/naming.html
and http://mindprod.com/jgloss/codingcoventions.html
You might call it b.c.D where b.c is the package name.
You might have a nested inner class with D inside C inside B. In that
case you just import the outermost class B.
In any case you just import the outermost class B.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
bubble601@gmail.com - 27 Jul 2007 04:36 GMT
I download the the project techus(http://svn.billen.dk/dk.teachus/
releases/teachus-1.9/) which is based on wicket framework(http://
wicket.sourceforge.net/).
for example, in the file TechUsApplication.java( under directory src
\main\java\dk\teachus\frontend),
it import class WebApplication like this:
import wicket.protocol.http.WebApplication; (line 16),
however the real package for this class(WebApplication) is :
org.apache.wicket.protocol.http.WebApplication;
it seems that org.apache has been omitted.
BTW: WebApplication is not an inner class.