flankerhqd / type-inference

Automatically exported from code.google.com/p/type-inference

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty method name output for anonymous inner class with non-nullary constructor

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Create file a.java with contents
class b  { 
    public b(int x) { }
}

public class a {

    public void m() {
        b ref = new b (42)  {
        };
    }
}
2. Run binary/javai-reim a.java

What is the expected output? What do you see instead?
In infer-output/pure-metods.csv contains:
a$1.(int)
a.m()
b.b(int)

The first line should not be output.

What version of the product are you using? On what operating system?
trunk from svn on Linux (Fedora 19) x64, OpenJDK 1.7.0_51

Please provide any additional information below.
<none>

Original issue reported on code.google.com by darioush...@gmail.com on 7 Mar 2014 at 7:03

Attachments: