kohiro / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

Float turned into double in default annotation parameter #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use annotation such as:
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.METHOD, ElementType.FIELD } )
@Documented
public @interface Field {
    /**
     * Field name, default to the JavaBean property name
     */
    String name() default "";

    /**
     * Should the value be stored in the document
     * defaults to no.
     */
    Store store() default Store.NO;

    /**
     * Defines how the Field should be indexed
     * defaults to tokenized
     */
    Index index() default Index.TOKENIZED;

    /**
     * Define term vector storage requirements,
     * default to NO.
     */
    TermVector termVector() default TermVector.NO;

    /**
     * Define an analyzer for the field, default to
     * the inherited analyzer
     */
    Analyzer analyzer() default @Analyzer;

    /**
     * Boost factor, default 1
     */
    Boost boost() default @Boost( value = 1.0F );

    /**
     * Field bridge used. Default is autowired.
     */
    FieldBridge bridge() default @FieldBridge;
}
2.  Try to compile.
3.  Fails due to 
.generated/com/gwtent/client/reflection/TypeOracle_Visitor.java not having F on 
the 1.0 parameter in boost.

What is the expected output? What do you see instead?
Correct compiling.  The constructor 
TypeOracle_Visitor.org_hibernate_search_annotations_Boost.org_hibernate_search_a
nnotations_BoostImpl(Class<Boost>, double).

What version of the product are you using? On what operating system?
0.7.1.  Gentoo Linux.

Please provide any additional information below.

Original issue reported on code.google.com by kmj7...@gmail.com on 24 Jun 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Thanks. Fixed in 1.0.0.RC1

Original comment by JamesLuo...@gmail.com on 28 Jun 2010 at 11:58