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

Java 9 Support - Enable JSystem to run with Java 9 #319

Closed
itaiag opened this issue Jan 29, 2018 · 0 comments
Closed

Java 9 Support - Enable JSystem to run with Java 9 #319

itaiag opened this issue Jan 29, 2018 · 0 comments

Comments

@itaiag
Copy link
Contributor

itaiag commented Jan 29, 2018

From some reason, JSystem fails to show all the projects building blocks. I still don't know why or what is the difference between the building blocks that are shown and the one that aren't.

To reproduce the problem, make sure that the JAVA_HOME is set to Java 9 and add the following test class to your project:

package test;

import org.junit.Test;

import junit.framework.SystemTestCase4;

public class FooTest extends SystemTestCase4 {

	@Test
	public void test0() {
	}

	@Test
	public void test1() {
	}

	@Test
	public void test2() {
	}

	@Test
	public void test3() {
	}

	@Test
	public void test4() {
	}

	@Test
	public void test5() {
	}

	@Test
	public void test6() {
	}

	@Test
	public void test7() {
	}

}

When JSystem will try to launch the class constructor using reflection, and the following error message will appear:

screenshot from 2018-01-29 15-21-04

The problem occurs at some point in the RunnerTest.loadTestClass method.

If we are going deeper to the rabbit hole, the method responsible to the exception is ExtendsTestCaseClassLoader.lookupClassData, because it fails to get the information of the jdk/internal/reflect/ConstructorAccessorImpl. I am not sure that this class should be investigated in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant