Skip to content

Extension not detect the updated code #1514

Closed

Description

@dyuyang

When I modified the code in unit test, the extension didn't detect the change and still ran test based on the old code.

Task this as an example:
Assert.assertEquals(1, 2);
When I changed the code to:
Assert.assertEquals(1, 1);
The extenstion still told me that 1 shouldn't equal to 2.

Here is the log of vscode:

java.lang.IllegalAccessError: superclass access check failed: class com.xxxxxx (in unnamed module @0x280445ac) cannot access class com.sun.tools.javac.tree.TreeTranslator (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x280445ac
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
	at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.base/java.net.URLClassLoader.defineClass(Unknown Source)
	at java.base/java.net.URLClassLoader$1.run(Unknown Source)
	at java.base/java.net.URLClassLoader$1.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

it seems that the package xxxxxx has conflict with jdk. But even after I removed the dependency of package xxxxxx, clean the java workspace cache and restart the java project, the log wouldn't change.

Activity

  1. changed the title [-]Not detect update code[/-] [+]Extension not detect update code[/+] on Dec 21, 2022
  2. changed the title [-]Extension not detect update code[/-] [+]Extension not detect updated code[/+] on Dec 21, 2022
  3. changed the title [-]Extension not detect updated code[/-] [+]Extension not detect the updated code[/+] on Dec 21, 2022
  4. jdneo commented on Dec 22, 2022

    @jdneo
    Member

    Could you provide a sample project for this issue?

  5. github-actions commented on Jan 6, 2023

    @github-actions

    This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions