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

nacos-common-1.3+.jar ConcurrentHashSet.java is not compatible with jdk1.6 or 1.7 #5114

Closed
wanshiliuyun opened this issue Mar 16, 2021 · 0 comments
Labels
kind/bug Category issues or prs related to bug.
Milestone

Comments

@wanshiliuyun
Copy link

Describe the bug
below exception throwed when run nacos-client on jdk 1.6 or 1.7

java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at com.alibaba.nacos.common.utils.ConcurrentHashSet.iterator(ConcurrentHashSet.java:49)
at com.alibaba.nacos.common.notify.DefaultPublisher.receiveEvent(DefaultPublisher.java:176)
at com.alibaba.nacos.common.notify.DefaultPublisher.openEventHandler(DefaultPublisher.java:117)
at com.alibaba.nacos.common.notify.DefaultPublisher.run(DefaultPublisher.java:94)

use JDK8 compile to target 1.6 is not compatible with jdk1.6 or 1.7

Expected behavior
no exception

Acutally behavior
throw exception

How to Reproduce
Steps to reproduce the behavior:

  1. run new DefaultPublisher().run on jre 1.6 or 1.7

Desktop (please complete the following information):

  • OS: [All]
  • Version [nacos-common1.3.1, nacos-common1.4.1]
  • Module [common]
@KomachiSion KomachiSion added the kind/bug Category issues or prs related to bug. label Mar 16, 2021
@KomachiSion KomachiSion added this to the 1.4.2 milestone Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

2 participants