Menu

#59 JDT Translation Problem

open
Eclipse (8)
8
2009-12-01
2009-12-01
mshomrat
No

Plugin: com.ibm.wala.cast.java.jdt
File: com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator
Line: 2261

The JDTJava2CAstTranslator mishandles do-while loop due to a (possible) bug in the header creation.
The translation process creates a dummy header node you can jump back to from the end of the loop. However,instead of creating a labeled statement it is creating an empty one.

Suggested fix:
Change line 2261 to be: ASTNode header = makeBreakOrContinueTarget(n, "headerLabel" + n.getStartPosition());

Attached is a patch file.

Discussion

  • mshomrat

    mshomrat - 2009-12-01

    patch file

     
  • Stephen Fink

    Stephen Fink - 2009-12-01
    • priority: 5 --> 8
    • assigned_to: nobody --> dolby-oss
     
MongoDB Logo MongoDB