private boolean completeBinaryTypes = false;
private boolean overWeaving = false;
+ private static boolean systemPropertyOverWeaving = false;
public boolean forDEBUG_structuralChangesCode = false;
public boolean forDEBUG_bridgingCode = false;
public boolean optimizedMatching = true;
*/
private List<RuntimeException> dumpState_cantFindTypeExceptions = null;
+ static {
+ try {
+ String value = System.getProperty("aspectj.overweaving", "false");
+ if (value.equalsIgnoreCase("true")) {
+ System.out.println("ASPECTJ: aspectj.overweaving=true: overweaving switched ON");
+ systemPropertyOverWeaving = true;
+ }
+ } catch (Throwable t) {
+ System.err.println("ASPECTJ: Unable to read system properties");
+ t.printStackTrace();
+ }
+ }
+
/**
* Play God. On the first day, God created the primitive types and put them in the type map.
*/
}
try {
- String value = System.getProperty("aspectj.overweaving", "false");
- if (value.equalsIgnoreCase("true")) {
- System.out.println("ASPECTJ: aspectj.overweaving=true: overweaving switched ON");
+ if (systemPropertyOverWeaving) {
overWeaving = true;
}
+ String value = null;
value = System.getProperty("aspectj.typeDemotion", "false");
if (value.equalsIgnoreCase("true")) {
System.out.println("ASPECTJ: aspectj.typeDemotion=true: type demotion switched ON");