[seam-issues] [JBoss JIRA] (SOLDER-122) Some errors in the solder documentation
Jason Porter (Assigned) (JIRA)
jira-events at lists.jboss.org
Tue Oct 11 02:34:16 EDT 2011
[ https://issues.jboss.org/browse/SOLDER-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Porter reassigned SOLDER-122:
-----------------------------------
Assignee: Jason Porter
> Some errors in the solder documentation
> ---------------------------------------
>
> Key: SOLDER-122
> URL: https://issues.jboss.org/browse/SOLDER-122
> Project: Seam Solder
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 3.1.0.Beta2
> Environment: seam 3 on java 6
> Reporter: Luca Stancapiano
> Assignee: Jason Porter
> Fix For: 3.1.0.CR1
>
>
> Hi... I signal different errors on the codes written in the solder documentation: http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html_single/
> Mainly they are syntax errors. Here the details with the solutions:
> 1- error on chapter 14. Delete the ; in UserQuery: @Query("select u from User u")
> 2- on chapter 13, move the name() property of ACMEQueue annotation in value() else it cannot be called by other classes through the command: @ACMEQueue()
> 3- on chapter 13, the reference to the Generic annotation is wrong. There is no value property there. Delete the property in the @Generic(ACMEQueue.class) in the MessageManager class
> 4- on chapter 12 move @DefaultBean(type = FunctionMapper.class) written in the FunctionMapperImpl class to @DefaultBean(FunctionMapper.class) and add a public to the resolveFunction method. You cannot reduce the visibility of the inherited method
> 5- on chapter10 add a ')' in the end moving the Property<PersonName> personNameProperty = Properties.createProperty(Person.class.getField("personName"); in Property<PersonName> personNameProperty = Properties.createProperty(Person.class.getField("personName"));
> 6- on chapter10.3.4 add a 'public' to the boolean methodMatches(Method m) methos. You cannot reduce the visibility of the inherited method. Move from Integer.TYPE.class to Integer.TYPE.getClass and from Long.TYPE.class to Long.TYPE.getClass; they are instances!!
> 7- on chapter 10.4 add the 'new' to all 3 PropertyCriteria implementations references
> 8- on chapter 8 instead of getBeanManager().getBean(Instance.class); put something as: getBeanManager().getBeans(Long.TYPE); the getBean(...) method doesn't exist
> 9 - on chapter 7.1, the create method of AnnotatedTypeBuilder class must return a AnnotatedType instead of a AnnotatedTypeBuilder. Put it:
> {code}
> AnnotatedType builder = new AnnotatedTypeBuilder()
> .readFromType(baseType, true) /*
> * readFromType can read from an
> * AnnotatedType or a class
> */
> .addToClass(ModelLiteral.INSTANCE) /* add the @Model annotation */
> .create();
> {code}
> put it also in the second example. Then add a ')' in the end before the 'create' method and put <Unique> instead of <A> so:
> {code}
> AnnotatedType builder = new AnnotatedTypeBuilder()
> .readFromType(baseType, true)
> .redefine(Unique.class, new AnnotationRedefiner<Unique>() {
> public void redefine(RedefinitionContext<Unique> ctx) {
> ctx.getAnnotationBuilder().remove(Unique.class);
> }
> })
> .create();
> {code}
> 10 - on chapter 2.5 modify the method of the NamedBean from: public String getAge() to public int getAge()
> 11- on the chapter 2.1.2 instead of @Requires(EntityManager.class) put @Requires("javax.persistence.EntityManager")
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list