/[classpath]/classpath/java/lang/StackTraceElement.java
ViewVC logotype

Diff of /classpath/java/lang/StackTraceElement.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.5 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.2.2.6 by gnu_andrew, Sun Nov 27 21:00:37 2005 UTC
# Line 49  import java.io.Serializable; Line 49  import java.io.Serializable;
49   * @author Mark Wielaard (mark@klomp.org)   * @author Mark Wielaard (mark@klomp.org)
50   * @author Eric Blake (ebb9@email.byu.edu)   * @author Eric Blake (ebb9@email.byu.edu)
51   * @since 1.4   * @since 1.4
52   * @status updated to 1.4   * @status updated to 1.5
53   */   */
54  public final class StackTraceElement implements Serializable  public final class StackTraceElement implements Serializable
55  {  {
# Line 112  public final class StackTraceElement imp Line 112  public final class StackTraceElement imp
112    }    }
113    
114    /**    /**
115       * Create a new StackTraceElement representing a given source location.
116       *
117       * @param className the fully qualified name of the class
118       * @param methodName the name of the method
119       * @param fileName the name of the file, null if unknown
120       * @param lineNumber the line in the file, negative if unknown, or -2
121       * if this method is native
122       *
123       * @since 1.5
124       */
125      public StackTraceElement(String className, String methodName, String fileName,
126                               int lineNumber)
127      {
128        this(fileName, lineNumber, className, methodName, lineNumber == -2);
129        // The public constructor doesn't allow certain values to be null.
130        if (className == null || methodName == null)
131          throw new NullPointerException("invalid argument to constructor");
132      }
133    
134      /**
135     * Returns the name of the file, or null if unknown. This is usually     * Returns the name of the file, or null if unknown. This is usually
136     * obtained from the <code>SourceFile</code> attribute of the class file     * obtained from the <code>SourceFile</code> attribute of the class file
137     * format, if present.     * format, if present.

Legend:
Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26