( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.02914086480require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.02964115472include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.02964115472get_header( $name = ???, $args = ??? ).../single.php:10
60.02964115688locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.02964115784load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.02964116328require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.02974123736wp_head( ).../header.php:18
100.02974123736do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.02974123952WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.02974123952WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.02984127368wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.02984127368do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.02984127584WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.02984127584WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.02994129472twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.03014130992wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.03014130992WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.03014130992WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.03014130992_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.03014131312wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.03014137696trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.02914086480require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.02964115472include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.02964115472get_header( $name = ???, $args = ??? ).../single.php:10
60.02964115688locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.02964115784load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.02964116328require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.02974123736wp_head( ).../header.php:18
100.02974123736do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.02974123952WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.02974123952WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.02984127368wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.02984127368do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.02984127584WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.02984127584WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.02994129472twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.11474138800wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.11474138800WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.11474138800WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.11474138800_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.11474139120wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.11484139344trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

Using JAR-related APIs

Using JAR-related APIs

The JavaTM platform contains several classes for use with JAR files. Some of these APIs are:

To give you an idea of the possibilities that are opened up by these new APIs, this lesson guides you through the inner workings of a sample application called JarRunner.


An Example – The JarRunner Application


JarRunner enables you to run an application that’s bundled in a JAR file by specifying the JAR file’s URL on the command line. For example, if an application called TargetApp were bundled in a JAR file at http://www.xxx.yyy/TargetApp.jar, you could run the application using this command:
java JarRunner http://www.xxx.yyy/TargetApp.jar
In order for JarRunner to work, it must be able to perform the following tasks, all of which are accomplished by using the new APIs:

  • Access the remote JAR file and establish a communications link with it.

  • Inspect the JAR file’s manifest to see which of the classes in the archive is the main class.

  • Load the classes in the JAR file.

The JarRunner application consists of two classes, JarRunner and JarClassLoader. JarRunner delegates most of the JAR-handling tasks to the JarClassLoader class. JarClassLoader extends the java.net.URLClassLoader class. You can browse the source code for the JarRunner and JarClassLoader classes before proceeding with the lesson:



This lesson has two parts:


The JarClassLoader Class


This section shows you how JarClassLoader uses some of the new APIs to perform tasks required for the JarRunner application to work.

The JarRunner Class


This section summarizes the JarRunner class that comprises the JarRunner application.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.