#40 Incorrect instantion of member before inner class declaratio

open
5
2009-05-27
2009-05-27
Jake
No

Context:

org.eclipse.draw2d.IFigure decares an inner class NoInsets, then later on instantiates that class and assigns it to member NO_INSETS.

Expected Behaviour:

In code compiled by j2s, corresponding IFigure.js should declare inner class NoInsets before it instantiates it and assigns it to member NO_INSETS.

Actual Behaviour:

The declaration and assignment happens in the wrong order.

Other information:

Perhaps the correct behaviour is to always perform inner class declarations before setting up class members. What could go wrong with that?

Discussion

  • Jake

    Jake - 2009-05-27

    IFigure.java

     
  • Jake

    Jake - 2009-05-27

    Corrected IFigure.js

     
  • Jake

    Jake - 2009-05-27

    Original IFigure.js

     

Log in to post a comment.