Skip to content

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

Closed
@som-snytt

Description

@som-snytt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions