[lworld] RFR: 8264216: [lworld] unknown.Class.default gives misleading compilation error

Jesper Steen Møller jespersm at openjdk.java.net
Wed Mar 31 12:58:28 UTC 2021


On Wed, 31 Mar 2021 09:38:13 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:

>> Make the compilation error for `somepkgname.UnknownClass.default` as informative as `UnknownClass.default`.
>
> test/langtools/tools/javac/valhalla/lworld-values/UnknownTypeDefault.out line 3:
> 
>> 1: UnknownTypeDefault.java:11:30: compiler.err.cant.resolve.location: kindname.class, Y, null, null, (compiler.misc.location: kindname.class, UnknownTypeDefault, null)
>> 2: UnknownTypeDefault.java:12:32: compiler.err.cant.resolve.location: kindname.class, y.Z, null, null, (compiler.misc.location: kindname.class, UnknownTypeDefault, null)
>> 3: 2 errors
> 
> Are the co-ordinates of the error message correct ?? This test is failing for me as I see different column numbers than what you have mastered.

I submitted it first with tabs instead of spaces, and corrected the spaces without fixing the issue, assuming 4 space tabs.
I should have caught this in the tier1 langtools test pipeline, I was just looking in the wrong place.

-------------

PR: https://git.openjdk.java.net/valhalla/pull/372



More information about the valhalla-dev mailing list