Skip to content

Partest separate compilation with Java files in the neg category does not record Javac errors #6289

Closed
@scabug

Description

@scabug
  1. Create a directory myBug in neg in Partest with:

file_1.scala:

class Const { val x = 1 }

file_2.java:

public class file_2 {
    public static void foo() {
        Const c = new Const();
        c.x = 2;
    }
}

Running:

test/partest --show-log test/files/neg/

gives:

Testing individual files
test/files/neg/myBug/file_2.java:4: error: x has private access in Const
        c.x = 2;
         ^
1 error
testing: [...]/files/neg/myBug                                        [  OK  ]
All of 1 tests were successful (elapsed time: 00:00:02)

although there is no check file with the produced output.

  1. Also, there are no compilation errors being printed out for run tests.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions