question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Java 17

See original GitHub issue

Hi @Grundlefleck,

any chances you want to merge #182? We want to upgrade to Java 17 and MutabilityDetector ist not working for us anymore.

Class being analysed: java.lang.ref.SoftReference
Checker that failed: CanSubclassChecker
Classes analysed so far:

An unhandled error occurred while analysing the class 'java.lang.ref.SoftReference'.

This is probably my fault, not yours, and I am sorry.
I'd love to get an opportunity to fix this, please report as an issue at:
 https://github.com/MutabilityDetector/MutabilityDetector/issues/ 
Pasting in this error message and stack trace, and if possible, 
information about the code causing the error. 
For example, one of: 
    .class files (preferably with source);
    compilable .java files; 
    a jar (again preferably with source);
    or, if your project is open source, information on where I can get the code from
        (I'm happy to checkout and build your project in order to investigate the error).

Apologies, and thank you for using Mutability Detector.


	at org.mutabilitydetector.checkers.UnhandledExceptionBuilder.unhandledException(UnhandledExceptionBuilder.java:62)
	at org.mutabilitydetector.checkers.CheckerRunner.attemptRecovery(CheckerRunner.java:121)
	at org.mutabilitydetector.checkers.CheckerRunner.runVisitor(CheckerRunner.java:89)
	at org.mutabilitydetector.checkers.CheckerRunner.run(CheckerRunner.java:69)
	at org.mutabilitydetector.checkers.AllChecksRunner.runCheckers(AllChecksRunner.java:75)
	at org.mutabilitydetector.DefaultCachingAnalysisSession.requestAnalysis(DefaultCachingAnalysisSession.java:141)
	at org.mutabilitydetector.DefaultCachingAnalysisSession.processTransitiveAnalysis(DefaultCachingAnalysisSession.java:125)
	at org.mutabilitydetector.checkers.info.MutableTypeInformation.requestAnalysisIfNoCyclicReferenceDetected(MutableTypeInformation.java:67)
	at org.mutabilitydetector.checkers.info.MutableTypeInformation.resultOf(MutableTypeInformation.java:59)
	at org.mutabilitydetector.checkers.MutableTypeToFieldChecker$AssignMutableTypeToFieldChecker.checkIfClassIsMutable(MutableTypeToFieldChecker.java:174)
	at org.mutabilitydetector.checkers.MutableTypeToFieldChecker$AssignMutableTypeToFieldChecker.visitFieldAssignmentFrame(MutableTypeToFieldChecker.java:156)
	at org.mutabilitydetector.checkers.FieldAssignmentVisitor.visitEnd(FieldAssignmentVisitor.java:92)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1492)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:718)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:401)
	at org.mutabilitydetector.checkers.CheckerRunner.analyse(CheckerRunner.java:112)
	at org.mutabilitydetector.checkers.CheckerRunner.analyseFromClassLoader(CheckerRunner.java:107)
	at org.mutabilitydetector.checkers.CheckerRunner.runVisitor(CheckerRunner.java:86)
	... 50 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
	at org.mutabilitydetector.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:284)
	at org.mutabilitydetector.checkers.CheckerRunner.analyse(CheckerRunner.java:111)
	at org.mutabilitydetector.checkers.CheckerRunner.analyseFromClassLoader(CheckerRunner.java:107)
	at org.mutabilitydetector.checkers.CheckerRunner.runVisitor(CheckerRunner.java:86)
	... 65 more

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Grundlefleckcommented, Jan 30, 2022

@jokraehe 0.10.6 has just landed in Maven Central. Please try it out and let me know if it fixes the issue.

1reaction
Grundlefleckcommented, Jan 26, 2022

I’ve merged #181 which should add support. I’ve run out of time this evening to cut the release, but progress is being made.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JDK 17 Release Notes, Important Changes, and Information
Introduction. These notes describe important changes, enhancements, removed APIs and features, deprecated APIs and features, and other information about JDK ...
Read more >
Java/OpenJDK - endoflife.date
Release Released Active Support 19 2 months and 3 weeks ago. (20 Sep 2022) Ends in 3 months. (21 Mar 2023) 18 8 months and...
Read more >
Java 17, the Next Long-Term Support Release, is Now Available
The release date for Java 18 has not yet been announced, but it is expected to be delivered in mid-March 2022 as per...
Read more >
Java version history - Wikipedia
Regarding Oracle Java SE Support Roadmap, version 19 is the latest one, and versions 17, 11 and 8 are the currently supported long-term...
Read more >
Getting Started With Java 17 | Simply-How.com
Key changes from JDK 11 to JDK 17 and how Gradle, Maven, IntelliJ IDEA and Eclipse support Java 17.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found