Community
Participate
Working Groups
From bug 185422, the following code should not compile: @A(name = X.QUERY_NAME, query = X.QUERY) public class X { public static final String QUERY_NAME = "client.query.name"; private static final String QUERY = "from Client"; } @interface A{ String name(); String query(); } It fails to compile using javac 1.7 (b93) and javac 1.6_21. It compiles fine using Eclipse compiler 3.6RC4.
Potential 3.6.1 candidate.
Created attachment 172115 [details] Patch under consideration
Patch looks good. +1 for 3.6.1.
Released in HEAD for 3.7 M1 and in 3.6 maintenance stream for 3.6.1
Verified for 3.7M1 using build I20100802-1800.
Marked verified by mistake. Resetting to RESOLVED.
*** Bug 322741 has been marked as a duplicate of this bug. ***
Verified for 3.6.1 using build M20100825-0800.
This bug injection is being reverted in https://github.com/eclipse-jdt/eclipse.jdt.core/pull/340