https://bugs.documentfoundation.org/show_bug.cgi?id=162563

            Bug ID: 162563
           Summary: Remove remaining Java applets code and references
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Java Applet was a nice way of running complex applications inside browsers that
supported them.
https://en.wikipedia.org/wiki/Java_Applet

This feature was deprecated in 2017 by JEP 289 in Java 9. The plugin was
removed from the browsers, and the Java API was eventually removed in 2021 by
JEP 398 in Java 17. 

There are many places in Java and C++ code of LibreOffice that handle Java
applets. Those parts of the code can be considered dead, and should be removed.

The task here is to find those places of the code that are dedicated to Java
applets and remove them gradually.

Code pointer:
To start, you should search for "applet" in the code base:

$ git grep -i applet

Around 600 results are printed. Some of them are unrelated, for example,
APPLETURKISH is also listed there, which is obviously unrelated. Also, words in
dictionary files (.dic) are not related.

The best way to move forward is to go one module at a time. For example, you
can start from bean module. These are the files listed for the bean module:

$ git grep -li applet bean
bean/com/sun/star/comp/beans/CallWatchThread.java
bean/com/sun/star/comp/beans/LocalOfficeConnection.java
bean/com/sun/star/comp/beans/OOoBean.java
bean/test/applet/oooapplet/OOoViewer.java
bean/test/applet/oooapplet/example.html
bean/test/applet/oooapplet/makefile.mk

You need to remove the Makefile(s), Java/C++ source code, related
documentation, and also folders that were only containing those files. It is
worth mentioning that there is a related ODK example in
odk/examples/DevelopersGuide/OfficeBean/ folder.

More information about deprecation of the Java applets can be found here:

JDK 9 Release Notes - Deprecated APIs, Features, and Options
https://www.oracle.com/java/technologies/javase/9-deprecated-features.html

JEP 289: Deprecate the Applet API
https://openjdk.org/jeps/289

JEP 398: Deprecate the Applet API for Removal
https://openjdk.org/jeps/398

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to