JDK-4191520 : Change in AppletClassLoader handling of class load failures
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.0,1.2.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1998-11-19
  • Updated: 1999-06-28
  • Resolved: 1999-06-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.2.2 1.2.2Fixed
Related Reports
Duplicate :  
Relates :  
Description

Name: tb29552			Date: 11/19/98


1. JDK1.2 RC2

--- the next line is the beginning of LoadBug.html ---
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Incident Detail #43059</title>
  </head>
  <body>
    <h1>Incident Detail #43059</h1>
    Attempt to load a non-existing ResourceBundle: foo
    <hr>
    <applet code="LoadBug" width=355 height=130>
    </applet>
    <hr>
    <!-- Created: Wed Sep 30 13:42:02 PDT 1998 -->
    <!-- hhmts start -->
Last modified: Thu Nov 19 13:26:58 PST 1998
<!-- hhmts end -->
  </body>
</html>
--- the previous line is the end of LoadBug.html ---

appletviewer http://yourhost/LoadBug.html
java.lang.ClassFormatError: foo_en_US (Bad magic number)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:403)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:280)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:110)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
        at java.util.ResourceBundle.findBundle(Compiled Code)
        at java.util.ResourceBundle.getBundle(Compiled Code)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:334)
        at LoadBug.init(LoadBug.java:7)
        at sun.applet.AppletPanel.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:479)

Bad magic number??? the class doesn't even exist!

2. JDK1.2 RC2

appletviewer LoadBug.html     (local load!!!)
java.util.MissingResourceException: can't find resource for foo_en_US
        at java.util.ResourceBundle.getBundle(Compiled Code)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:334)
        at LoadBug.init(LoadBug.java:7)
        at sun.applet.AppletPanel.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:479)

JDK1.1.7A stack trace as follows:
java.util.MissingResourceException: can't find resource for foo_en_US
        at java.util.ResourceBundle.getBundle(Compiled Code)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:297)
        at LoadBug.init(LoadBug.java:7)
        at sun.applet.AppletPanel.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:466)
(Review ID: 43059)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2.2 INTEGRATED IN: 1.2.2
2004-06-14

WORK AROUND Name: tb29552 Date: 11/19/98 none ======================================================================
2004-06-11

EVALUATION This problem has been fixed in both 1.2.2 and kestrel and is not reproducible anymore. ###@###.### 1999-06-28
1999-06-28