Skip to content

[24] content assist for JEP 488 - Primitives in Patterns #2886

@mpalat

Description

@mpalat

Given a preview enabled Java 23 compliance and the following source, completion at / here / can provide options for primitives as well.

public class X {
	public static byte foo(byte b) {
		if (b instanceof **/* here */by**) {
			return b;
		}
		return -1;
	}
	public static void main(String[] args) {
		byte b = 1;
		System.out.println(X.foo(b));
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions