Results 1 to 3 of 3

Thread: Implements generation failure

  1. #1
    Join Date
    Dec 2009
    Posts
    5

    Default Implements generation failure

    Hi,
    Congratulations on the project.

    I'm implementing some plugin with Roo, and I see that file JavaParserMutableClassOrInterfaceTypeDetails failure in line 406.

    Code:
     // Implements handling
    	    	List<ClassOrInterfaceType> implementsList = new ArrayList<ClassOrInterfaceType>();
    			for (JavaType current : cit.getImplementsTypes()) {
    				NameExpr nameExpr = JavaParserUtils.importTypeIfRequired(cit.getName().getPackage(), compilationUnit.getImports(), current);
    	        	ClassOrInterfaceType resolvedName = JavaParserUtils.getClassOrInterfaceType(nameExpr);
    	        	extendsList.add(resolvedName);
    			}
    	    	if (implementsList.size() > 0) {
    	    		classOrInterfaceDeclaration.setImplements(implementsList);
    	    	}
    Should be replace extendsList by implementsList.

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Can you please open a bug ticket in our Jira system http://jira.springframework.org/browse/ROO along with descriptions of what you are doing and what goes wrong? This way we can investigate this and fix the issue for you.

    Thanks,
    Stefan

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Logged as https://jira.springsource.org/browse/ROO-455 and corrected in SVN revision 510. Thank you for letting us know. It would be good if you were able to verify this is now working correctly from your perspective by commenting on the above Jira issue. Thanks.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •