[Impact]

 * freeplane depends on knopflerfish-osgi (libknopflerfish-osgi-framework-java)
   as OSGi runtime

 * libknopflerfish-osgi-framework-java 6.1.1-2 does not set source and
   target level for java. Thus, it will use "11" (or "1.11") when compiled
   with OpenJDK11 (the default in bionic). That's why OpenJDK8 cannot run
   the code.

 * The fix is a very simple backport of 6.1.1-3 (tested in Debian
   unstable): set source and target level to 1.7 (knopflerfish requires
   Java7), see attached debdiff. This is necessary for freeplane to start
   under bionic with Java8.
 
[Test Case]

 * Run the freeplane package from bionic while having installed and
   selected OpenJDK8. If it fails (this SRU is not applied), you will see:
   
   Exception in thread "main" java.lang.UnsupportedClassVersionError:
   org/knopflerfish/framework/Main has been compiled by a more recent
   version of the Java Runtime (class file version 53.0), this version of
   the Java Runtime only recognizes class file versions up to 52.0

[Regression Potential]

 * The possible risk is that knopflerfish still does not run under Java8
   and freeplane still does not start.

[Other Info]

 * debdiff is attached

 * Here is the branch for the SRU upload:
   https://salsa.debian.org/java-team/knopflerfish-osgi/tree/bionic-sru

 * Some users have applied one of these two workarounds (while I was preparing 
this SRU):
   - Install openjdk-9-jdk and choose it (use sudo update-java-alternatives 
--list/--set ... or set JAVA_HOME)
   - use the upstream .deb


** Patch added: "debdiff for this SRU"
   
https://bugs.launchpad.net/ubuntu/+source/freeplane/+bug/1800147/+attachment/5213083/+files/knopflerfish-6.1.1-2ubuntu1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1800147

Title:
  Bionic freeplane SRU [was: freeplane didn't show interface]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeplane/+bug/1800147/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to