Allow type arguments on invocation of non-parameterized method

Issue #104 resolved
Jesper Öqvist created an issue

JastAddJ 7.1.1-289-g68d98be Java SE 7

According to the Java language specification it is okay to add type arguments when calling a non-parameterized method:

// According to JLS 15.12.2.1 it is allowed to specify type arguments to non-generic method calls
// .result=COMPILE_PASS
class Test {
        void a() { }
        void b() {
                this.<Test>a();
        }
}

JastAddJ currently gives an error for this test case.

JLS references:

Comments (3)

  1. Log in to comment