| |
Semantic Patches for Java Program Transformation
Speaker (s):

KANG Hong Jin
PhD Student
School of Information Systems
Singapore Management University
|
|
Date:
Time:
Venue:
|
|
July 3, 2019, Wednesday
2:00pm - 2.30pm
Meeting Room 4.4, Level 4
School of Information Systems
Singapore Management University
80 Stamford Road
Singapore 178902
We look forward to seeing you at this research seminar.

|
|
About the Talk
Developing software often requires code changes that are widespread and applied to multiple locations. There are tools for Java that allow developers to specify patterns for program matching and source-to-source transformation. However, to our knowledge, none allows for transforming code based on its control-flow context. We prototype Coccinelle4J, an extension to Coccinelle, which is a program transformation tool designed for widespread changes in C code, in order to work on Java source code. We adapt Coccinelle to be able to apply scripts written in the Semantic Patch Language (SmPL), a language provided by Coccinelle, to Java source files. As a case study, we demonstrate the utility of Coccinelle4J with the task of API migration. We show 6 semantic patches to migrate from deprecated Android API methods on several open source Android projects. We describe how SmPL can be used to express several API migrations and justify several of our design decisions.
This is a pre-conference talk for 33rd European Conference on Object-Oriented Programming.
About the Speaker
Kang Hong Jin is a PhD student in School of Information Systems, Singapore Management University. He is supervised by Associate Professor David Lo.
Please click here if you wish to unsubscribe.
|