### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v retrieving revision 1.274 diff -u -r1.274 ASTConverter15Test.java --- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 31 Jul 2008 15:08:38 -0000 1.274 +++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 7 Aug 2008 02:16:03 -0000 @@ -46,7 +46,7 @@ } static { -// TESTS_NUMBERS = new int[] { 321 }; +// TESTS_NUMBERS = new int[] { 322 }; // TESTS_RANGE = new int[] { 308, -1 }; // TESTS_NAMES = new String[] {"test0204"}; } @@ -10313,4 +10313,33 @@ IMethodBinding methodBinding = invocation.resolveMethodBinding(); System.out.println(methodBinding.getReturnType().getQualifiedName()); } + /* + * https://bugs.eclipse.org/bugs/show_bug.cgi?id=242933 + */ + public void test0322() throws JavaModelException { + String contents = + "package test0322;\n" + + "@interface Range {\n" + + " long min() default -9223372036854775808L;\n" + + " long max() default 9223372036854775807L;\n" + + " String message() default \"\";\n" + + "}\n" + + "public class X {\n" + + " private int id;\n" + + " /*start*/@Range(max=9999999999999999)/*end*/\n" + + " public long getId() {\n" + + " return id;\n" + + " }\n" + + "}"; + this.workingCopy = getWorkingCopy( + "/Converter15/src/test0322/X.java", + contents, + true/*resolve*/ + ); + NormalAnnotation annotation = (NormalAnnotation) buildAST(contents, workingCopy, false, true, true); + IAnnotationBinding annotationBinding = annotation.resolveAnnotationBinding(); + IMemberValuePairBinding[] memberValuePairBindings = annotationBinding.getDeclaredMemberValuePairs(); + IMemberValuePairBinding pairBinding = memberValuePairBindings[0]; + assertNull("Got a value", pairBinding.getValue()); + } } \ No newline at end of file