This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 9052

Summary: fastjavac generations Invalid pc in line number table in bytecode
Product: java Reporter: Dino Valente <dino>
Component: UnsupportedAssignee: Ivan Bradac <ibradac>
Status: CLOSED FIXED    
Severity: major    
Priority: P4    
Version: 3.x   
Hardware: Other   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description Dino Valente 2001-01-10 00:21:00 UTC
1) Create following class:

import java.io.*;

public class test {

  static private final boolean DEBUG = false;
      // Only used when serving via polled I/O:

  public static void main(String[] args) throws IOException {
      if (!toto()) {
          /// whatever
      }
  }

  // Combination of !DEBUG and try that is causing bug
  static boolean toto() {

      if (!DEBUG) { return false ; }

      try {
           System.out.println("toto");
      } catch (Exception e) { return false; }
      return false;
  }

}

2). Compile with fastjavac

  fastjavac test.java

 3). Run with java vm
 java -version
 java version "1.3.0_01"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
 Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

 java test

 which generates the following:

 Exception in thread "main" java.lang.ClassFormatError: test (Invalid pc in
line number table)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

 *Note: if I compile the code with javac then it works fine.

  4) fastjava version:

fastjava -version:
fastjavac: version 4.0, 11/04/00-10:39, build #461
Comment 1 Svata Dedic 2001-01-17 16:01:59 UTC
As other team does fastjavac development, there's nothing we can do for fixing
the bug than hand over the bug descriptions to the responsible team (already
done). We will send out a message to nbusers@ and nbdev@ if/when new release of
fastjavac will be available.
Comment 2 Svata Dedic 2001-02-14 13:57:59 UTC
Reopening/reassigning to Sustaining team.
Comment 3 Ivan Bradac 2001-02-16 12:28:51 UTC
Has been forwarded to the Sun's fastjavac team. 
Check the current status on
http://developer.java.sun.com/developer/bugParade/bugs/4388684.html
Comment 4 Ivan Bradac 2001-02-27 10:01:42 UTC
Fixed in Dev-132.
Comment 5 Ivan Bradac 2001-02-27 10:02:13 UTC
Fixed in Dev-132.
Comment 6 Jan Becicka 2001-03-02 16:38:38 UTC
[dev-136] Verified
Comment 7 Quality Engineering 2003-07-01 13:16:13 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.