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

Duplicate class definitions warning #309

Closed
weisJ opened this issue Jan 23, 2022 · 3 comments
Closed

Duplicate class definitions warning #309

weisJ opened this issue Jan 23, 2022 · 3 comments
Labels
help wanted Extra attention is needed macOS Related to the macOS operating system

Comments

@weisJ
Copy link
Owner

weisJ commented Jan 23, 2022

After updatingdarklaf from 2.5.3 to 2.7.3, I'm getting warnings about classes like JNFException being implemented in both the framework provided by the system and in the packaged JavaNativeFoundation framework. I think this was introduced with version 2.7.0 and it looks like the issue is resolved on M1 Macs (based on the logs provided in #240). However, on my Intel-Mac running macOS 12.1, I'm still getting the following warnings. The application still runs fine but I think resolving these warnings would probably not be a bad idea. Maybe I'm just missing something simple, but how can I resolve this?

Thanks :)

objc[10618]: Class JNFException is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf220) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672ed90). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFTypeCoercer is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf270) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672ede0). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFInternalJavaClassToCoersionHolder is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf298) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672ee08). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFStringCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf338) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672eea8). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFNumberCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf388) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672eef8). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFDateCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf3d8) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672ef48). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFMapCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf428) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672ef98). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFListCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf478) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672efe8). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFSetCoercion is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf4c8) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f038). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFDefaultCoercions is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf4f0) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f060). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFJObjectWrapper is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf540) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f0b0). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFWeakJObjectWrapper is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf590) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f100). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFRunLoop is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf608) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f178). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFRunnableWrapper is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf658) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f1c8). One of the two will be used. Which one is undefined.
objc[10618]: Class JNFRunnable is implemented in both /System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (0x7ffa55fcf6a8) and /private/var/folders/ry/vzr6v0q52z17fg0tv411cs0w0000gn/T/nativeutils119047917723686230890633925487399/JavaNativeFoundation.framework/JavaNativeFoundation (0x11672f218). One of the two will be used. Which one is undefined.

Originally posted by @hannesbraun in #291

@weisJ
Copy link
Owner Author

weisJ commented Jan 23, 2022

See #301 (comment) for some more information about what has to be done.

@weisJ weisJ added help wanted Extra attention is needed macOS Related to the macOS operating system labels Jan 23, 2022
@weisJ
Copy link
Owner Author

weisJ commented Feb 6, 2022

@hannesbraun
Please try whether this version works for you:

repositories {
    maven {
        url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
    }
}
configurations.all {
    resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}
dependencies {
    implementation("com.github.weisj:darklaf-core-jnf:latest.integration")
}

@hannesbraun
Copy link

Yes, it looks like this fixes the duplicate class definitions. At least, I don't get warnings about them anymore ;)
Thanks a lot!

@weisJ weisJ linked a pull request Feb 11, 2022 that will close this issue
@weisJ weisJ closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed macOS Related to the macOS operating system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants