castor

CollectionInfo.createRemoveByIndexMethod() creates illegal code if there's a class generated of type 'Object' from an XML schema artefact

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.1 M1, 1.1 M2
  • Fix Version/s: 1.1 M3
  • Component/s: XML code generator
  • Labels:
    None
  • Number of attachments :
    1

Description

Basically, the code generated for the remove<Entity>At method should read

java.lang.Object obj = ...

instead of ...

Object obj = ...

Activity

Hide
Werner Guttmann added a comment -

Final patch for review.

Show
Werner Guttmann added a comment - Final patch for review.
Hide
Edward Kuns added a comment -

Good catch. Yes, we need to fully qualify all class references in generated code (except for the rare reference to other generated code that we catch via import).

+1

Show
Edward Kuns added a comment - Good catch. Yes, we need to fully qualify all class references in generated code (except for the rare reference to other generated code that we catch via import). +1

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
15m
Time Spent - 15 minutes