|
|
|
@ -46,8 +46,11 @@ public class PackageIdentifier extends Identifier { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Identifier getIdentifier(String name) { |
|
|
|
|
if (loadOnDemand) |
|
|
|
|
return loadClass(name); |
|
|
|
|
if (loadOnDemand) { |
|
|
|
|
Identifier ident = loadClass(name); |
|
|
|
|
if (bundle.preserveRule != -1) |
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int index = name.indexOf('.'); |
|
|
|
|
if (index == -1) |
|
|
|
@ -116,6 +119,12 @@ public class PackageIdentifier extends Identifier { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void applyPreserveRule(int preserveRule) { |
|
|
|
|
Enumeration enum = loadedClasses.elements(); |
|
|
|
|
while(enum.hasMoreElements()) |
|
|
|
|
((Identifier) enum.nextElement()).applyPreserveRule(preserveRule); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void reachableIdentifier(String fqn, boolean isVirtual) { |
|
|
|
|
int index = fqn.indexOf('.'); |
|
|
|
|
String component = index == -1 ? fqn : fqn.substring(0, index); |
|
|
|
|