Menu

Netbeans errors

Help
2013-04-01
2013-04-02
  • Malcolm Lidierth

    This is a great library. But in Netbeans I am seeing a handful of compilation errors, all of the following types and all relating to the various "create" factory methods:

    E.G.

    public static <t extends="" continuouscurve2d=""> PolyCurve2D<t> create(
    Collection<t> curves)....</t></t></t>

    name clash: <t#1>create(Collection<t#1>) in PolyCurve2D and <t#2>create(Collection<t#2>) in CurveArray2D have the same erasure, yet neither hides the other
    where T#1,T#2 are type-variables:
    T#1 extends ContinuousCurve2D declared in method <t#1>create(Collection<t#1>)
    T#2 extends Curve2D declared in method <t#2>create(Collection<t#2>)</t#2></t#2></t#1></t#1></t#2></t#2></t#1></t#1>

     

    Last edit: Malcolm Lidierth 2013-04-01
  • David

    David - 2013-04-02

    Hi Malcolm,

    thank you for reporting the problem,

    I did not encounter the problem with Eclipse, but if you can not compile this is a problem. I suppose the problems comes from multiple generic definition from parent classes. I will try to investigate this.

    regards,
    David

     

Log in to post a comment.