Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337418

Summary: [content assist] Content assist does not expand boolean parameter of annotation
Product: [Eclipse Project] JDT Reporter: David Balažic <david.balazic>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.6.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description David Balažic CLA 2011-02-17 06:50:36 EST
ctrl-space does not offer expand the strings "true" and "false" as an annotation parameter.

Example:

package org.springframework.test.annotation;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.METHOD})
public @interface Rollback
{
  public abstract boolean value();
}


If I type in java code this:

@Rollback()

having the cursor between the brackets, ctrl-space does not offer "true" or "false".
Even if I start typing "fa" and then press ctrl-space, it does not expand it to "false".


-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
Comment 1 Dani Megert CLA 2011-02-17 07:09:41 EST

*** This bug has been marked as a duplicate of bug 93120 ***