cvs commit: jakarta-bcel/src/java/org/apache/bcel/generic MethodGen.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       2004/01/19 23:41:24

  Modified:    src/java/org/apache/bcel/generic MethodGen.java
  Log:
  isNative
  
  Revision  Changes    Path
  1.9       +2 -2      jakarta-bcel/src/java/org/apache/bcel/generic/MethodGen.java
  
  Index: MethodGen.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/generic/MethodGen.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MethodGen.java	23 May 2003 07:52:22 -0000	1.8
  +++ MethodGen.java	20 Jan 2004 07:41:24 -0000	1.9
  @@ -715,7 +715,7 @@
   
       Code code = null;
   
  -    if ((il != null) && !isAbstract()) {
  +    if ((il != null) && !isAbstract() && !isNative()) {
         // Remove any stale code attribute
         Attribute[] attributes = getAttributes();
         for (int i = 0; i < attributes.length; i++) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.