Skip to content

_ as an identifier breaks compilation on Java 9 #14

@FauxFaux

Description

@FauxFaux

Please remove the use of _ as an identifier in:

IntByReference _ = new IntByReference();

This breaks compilation on Java 9:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (default-cli) on project akuma: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1 - /build/akuma-1.10/src/main/java/com/sun/akuma/JavaVMArguments.java:380: error: as of release 9, '_' is a keyword, and may not be used as an identifier
[ERROR]         IntByReference _ = new IntByReference();
[ERROR]                        ^
[ERROR] /build/akuma-1.10/src/main/java/com/sun/akuma/JavaVMArguments.java:388: error: as of release 9, '_' is a keyword, and may not be used as an identifier
[ERROR]         if(LIBC.sysctl(new int[]{CTL_KERN,KERN_ARGMAX},2, argmaxRef.getPointer(), size, NULL, _)!=0)
[ERROR]                                                                                               ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions