diff options
author | acolyer <acolyer> | 2005-08-31 09:34:59 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-31 09:34:59 +0000 |
commit | be750d53ee48c2530bc9857196c468274632f7bc (patch) | |
tree | 1d29f95cb800286ec835f879f3cf9eef186757d4 | |
parent | 6542566aa769b0ba6cf98440bef2ba2699794bea (diff) | |
download | aspectj-be750d53ee48c2530bc9857196c468274632f7bc.tar.gz aspectj-be750d53ee48c2530bc9857196c468274632f7bc.zip |
fix for pr108377, Verify error on unqualified reference to itd field inside itd method.
-rw-r--r-- | bcel-builder/.settings/org.eclipse.jdt.core.prefs | 12 | ||||
-rw-r--r-- | bcel-builder/.settings/org.eclipse.jdt.ui.prefs | 3 | ||||
-rw-r--r-- | org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip | bin | 3703581 -> 3703584 bytes | |||
-rw-r--r-- | org.eclipse.jdt.core/jdtcore-for-aspectj.jar | bin | 5191333 -> 5191319 bytes | |||
-rw-r--r-- | tests/bugs150/pr108377.aj | 15 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 8 |
7 files changed, 42 insertions, 0 deletions
diff --git a/bcel-builder/.settings/org.eclipse.jdt.core.prefs b/bcel-builder/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..588492ba1 --- /dev/null +++ b/bcel-builder/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#Wed Aug 24 14:55:56 BST 2005 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.3 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore +org.eclipse.jdt.core.compiler.source=1.3 diff --git a/bcel-builder/.settings/org.eclipse.jdt.ui.prefs b/bcel-builder/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 000000000..968f6ad94 --- /dev/null +++ b/bcel-builder/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,3 @@ +#Wed Aug 24 14:55:56 BST 2005 +eclipse.preferences.version=1 +internal.default.compliance=default diff --git a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip Binary files differindex 0a7be57fb..3d864d4e4 100644 --- a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip +++ b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip diff --git a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar Binary files differindex 5de8a2a98..fae73efbe 100644 --- a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar +++ b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar diff --git a/tests/bugs150/pr108377.aj b/tests/bugs150/pr108377.aj new file mode 100644 index 000000000..041d3613e --- /dev/null +++ b/tests/bugs150/pr108377.aj @@ -0,0 +1,15 @@ +public class pr108377 { + public static void main(String[] args) { + System.out.println(new pr108377().foo()); + } +} + +aspect Aspect1 { + public pr108377 pr108377.a; + public String pr108377.value; + + public String pr108377.foo() { + if (a == null) a = this; + return a.value; + } +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 5d1ff7d8c..4413b9a26 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -306,6 +306,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("varargs with type variable"); } + public void testFieldAccessInsideITDM() { + runTest("itd field access inside itd method"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index a75e46b07..0a4929d11 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -358,6 +358,14 @@ </compile> </ajc-test> + <ajc-test dir="bugs150" pr="108377" title="itd field access inside itd method"> + <compile files="pr108377.aj"/> + <run class="pr108377"/> + </ajc-test> + + <!-- ============================================================================ --> + <!-- ============================================================================ --> + <!-- atOverride tests with ITDs --> <ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs"> |