Apache NetBeans Wiki Index

Note: These pages are being reviewed.

Can two or more modules contain the same package?

Yes, NetBeans does permit multiple modules to load from a single package. However, this should be considered poor style and avoided whenever possible. In particular, the Java runtime forbids package-private accesses between classes defined by different class loaders (e.g. classes contained in different modules).

Applies to: NetBeans 6.1 and later

Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqModuleDupePackages , that was last modified by NetBeans user Jglick on 2009-12-03T14:12:11Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.