Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First ident in Java type name must be type or package #21333

Open
som-snytt opened this issue Aug 6, 2024 · 1 comment · May be fixed by #21800
Open

First ident in Java type name must be type or package #21333

som-snytt opened this issue Aug 6, 2024 · 1 comment · May be fixed by #21800

Comments

@som-snytt
Copy link
Contributor

Compiler version

3.4.2

Minimized code

public class Foo {
    private String java;

    public java.lang.Integer test() {
        return null;
    }
}

Output

-- [E008] Not Found Error: test/files/pos/t11788/Foo.java:4:13 -------------------------------------------------------------------------------------------------
4 |     public java.lang.Integer test() {
  |            ^^^^^^^^^
  |            value lang is not a member of String
1 error found

Expectation

Forward port of scala/bug#11788 which is fixed.

This is a typer issue, so maybe it's not worth supporting.

May be worth fixing eventually with other low-prio Java mixed-mode bugs.

@som-snytt som-snytt added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label prio:low area:typer compat:java and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@som-snytt and others