diff options
-rw-r--r-- | src/java/net/sf/antcontrib/design/Design.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/net/sf/antcontrib/design/Design.java b/src/java/net/sf/antcontrib/design/Design.java index bd40a48..a68aebe 100644 --- a/src/java/net/sf/antcontrib/design/Design.java +++ b/src/java/net/sf/antcontrib/design/Design.java @@ -225,8 +225,12 @@ public class Design { currentAliasPackage.setUsed(true);
}
log.log(" class="+className, Project.MSG_VERBOSE);
-
- if(!className.startsWith(currentPackageName))
+
+ if(packageName.equals(Package.DEFAULT)) {
+ if(className.contains(".")) {
+ throw new RuntimeException("Internal Error");
+ }
+ } else if(!className.startsWith(currentPackageName))
throw new RuntimeException("Internal Error");
if(!currentAliasPackage.getNeedDepends())
|