DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2010-04-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897

--- Comment #5 from Nitin Phadnis nphad...@gmail.com 2010-04-03 13:19:23 UTC 
---
Workaround for oc4j is to use a native-data-source which is documented at
http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-datasource/doc/how-to-datasource.html

I used factory-class=oracle.jdbc.pool.OracleDataSource

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48951] New: Cannot build BCEL on Windows

2010-03-20 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48951

   Summary: Cannot build BCEL on Windows
   Product: BCEL
   Version: 5.3
  Platform: PC
OS/Version: Windows Vista
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: daniel.r.b...@gmail.com


Attempted to build trunk at r925722 on Windows, but couldn't, due to test
failures.

Windows version: Vista (64 bit)
Maven Version: 2.2.1
Java Version: 1.6.0_16 (64 bit)

Tests failed when asserting that file.delete() returned true. i.e. file cleanup
during tests failed to delete files. The build worked on:

Solaris:
Maven Version: 2.2.1
Java Version: 1.4.2_11

Mac OSX:
Maven Version: 2.2.1
Java Version: 1.6.0_16

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48908] New: Select instructions should implement StackConsumer instead of StackProducer

2010-03-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48908

   Summary: Select instructions should implement StackConsumer
instead of StackProducer
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Windows Vista
Status: NEW
  Severity: minor
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: hob...@gmail.com


Select instruction (class org.apache.bcel.generic.Select) is currently
implementing interface StackProducer. It should instead, implement interface
StackConsumer, since both instructions LOOKUPSWITCH and TABLESWITCH do consume
(pop) the operand stack. In addition calls to produceStack() and consumeStack()
do return the correct value.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48279] Invalid method signature: TT; when using MethodGen for a method having a generic parameter

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48279

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from Torsten Curdt tcu...@apache.org 2010-01-10 12:21:59 UTC 
---
Thx! Applied.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48280] FieldInstruction.getFieldSize() doesn't decode Type.getTypeSize() output

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48280

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Torsten Curdt tcu...@apache.org 2010-01-10 12:33:00 UTC 
---
Thx! Applied.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47072] Class files containing ParameterAnnotations are dumped incorrectly

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47072

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Torsten Curdt tcu...@apache.org 2010-01-10 12:48:09 UTC 
---
Thx. Applied.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 46722] problem using bcel in jdk15

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46722

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #2 from Torsten Curdt tcu...@apache.org 2010-01-10 12:50:46 UTC 
---
Please re-test against trunk.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 42552] Thread safety + unbuffered writes

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42552

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|ASSIGNED|NEEDINFO

--- Comment #3 from Torsten Curdt tcu...@apache.org 2010-01-10 13:06:07 UTC 
---
Just got back to this patch. BCEL is never meant to be theadsafe. What am I
missing?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 42655] ParameterAnnotationEntries are read not dumped

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42655

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #2 from Torsten Curdt tcu...@apache.org 2010-01-10 13:06:49 UTC 
---
Fixed.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 45230] tableswitch/lookupswitch invalid alignment of 4-byte operands

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45230

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from Torsten Curdt tcu...@apache.org 2010-01-10 13:22:30 UTC 
---
Thx. Applied.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 44876] ArrayIndexOutOfBoundsException thrown from TABLESWITCH.initFromFile

2010-01-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=44876

Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from Torsten Curdt tcu...@apache.org 2010-01-10 13:27:51 UTC 
---
Fixed. Thx.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48321] New: org.apache.bcel.generic.Instruction.equals(Object) does not follow Object.equals(Object) rules

2009-12-01 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48321

   Summary: org.apache.bcel.generic.Instruction.equals(Object)
does not follow Object.equals(Object) rules
   Product: BCEL
   Version: 5.2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: qweasd-v...@soukroma.cz


org.apache.bcel.generic.Instruction contains two strange methods: equals and
setComparator. The equals and hashCode methods are by definition (see
http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode%28%29 )
broken:
* If two Instruction objects have another InstructionComparator, they can be
asymmetrically equal.
* If instructions aren't compared by identity (==), the inherited hashCode
method is by definition broken.

I suggest: deprecate setComparator method.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-11-30 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

--- Comment #13 from Enrico Gueli enrico.gu...@polito.it 2009-11-30 15:23:34 
UTC ---
Forgive me for the false alarm: I did some mistakes while applying the patch
and therefore I got those errors again. I've retried now, and it works like a
charm. THANK YOU!!

BTW, the difficulties I had in applying the patch were only due to differences
in the whitespace.

Best regards

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-11-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

--- Comment #12 from Mattias Ulbrich mulbr...@ira.uka.de 2009-11-27 04:56:02 
UTC ---
Hi!

Do you have changed anything in the classes that fail to be read?
If you - for instance - add instructions to the code block and modify the
constant pool with that, the stack map table is not updated like the line
number table is. The dumping might then export invalid constants (perhaps).

Could you possibly post an example of a corrupted file (pre- and
post-processing)?

Regards, Mattias

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48279] New: Invalid method signature: TT; when using MethodGen for a method having a generic parameter

2009-11-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48279

   Summary: Invalid method signature: TT; when using MethodGen
for a method having a generic parameter
   Product: BCEL
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: major
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: enrico.gu...@polito.it


The following code throws a ClassFormatException: Invalid method signature:
TT; when executed:
===

import org.apache.bcel.Repository;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;
import org.apache.bcel.generic.ConstantPoolGen;
import org.apache.bcel.generic.MethodGen;

class MyClassLoader extends ClassLoader {
@Override
public Class? loadClass(String name) throws ClassNotFoundException {
if (name.startsWith(java.lang))
return super.loadClass(name);

JavaClass jcl;
jcl = Repository.lookupClass(name);
scanMethods(jcl);
byte[] data = jcl.getBytes();
return defineClass(name, data, 0, data.length);
}

private void scanMethods(JavaClass jcl) {
ConstantPoolGen cpg = new ConstantPoolGen(jcl.getConstantPool());
Method[] methods = jcl.getMethods();
for (int i = 0; i  methods.length; i++) {
MethodGen mg = new MethodGen(methods[i], jcl.getClassName(), cpg);
}
}
}

class FooT {
public void bar(T x) {
}
}

public class MethSignTest {
public MethSignTest() {
FooInteger foo = new FooInteger();
}

@SuppressWarnings(unchecked)
public static void main(String[] args) {
try {
MyClassLoader mcl = new MyClassLoader();
ClassMethSignTest c = (ClassMethSignTest) mcl
.loadClass(MethSignTest.class.getName());
c.newInstance();
} catch (Exception e) {
e.printStackTrace();
}

}
}
===

Here's the full stack trace:

org.apache.bcel.classfile.ClassFormatException: Invalid method signature: TT;
at org.apache.bcel.classfile.Utility.typeOfSignature(Utility.java:986)
at org.apache.bcel.generic.Type.getType(Type.java:169)
at org.apache.bcel.generic.MethodGen.init(MethodGen.java:255)
at methodsignature.MyClassLoader.scanMethods(MethSignTest.java:26)
at methodsignature.MyClassLoader.loadClass(MethSignTest.java:17)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at methodsignature.MethSignTest.init(MethSignTest.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at methodsignature.MethSignTest.main(MethSignTest.java:47)

This misbehaviour occurs at least since revision 617860.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48270] Invalid stack map table tag bad constant pool index with Java 1.6 bytecode

2009-11-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48270

Enrico Gueli enrico.gu...@polito.it changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #1 from Enrico Gueli enrico.gu...@polito.it 2009-11-25 10:11:39 
UTC ---


*** This bug has been marked as a duplicate of bug 47073 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-11-18 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

--- Comment #9 from Mattias Ulbrich mulbr...@ira.uka.de 2009-11-18 07:09:06 
UTC ---
Hello!

In addition to the here report bugs, I assume very much that all those
readShort method calls should actually read readUnsignedShort since
negative values would not make sense there ...

5.2 does not allow to modify classes that have stack maps and save them, since
the dumping is very likely to crash. (Hope the patch NOW solves the issue)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 48203] New: BCELifier issue: BCELFactory fails to handle float and long constants

2009-11-16 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48203

   Summary: BCELifier issue: BCELFactory fails to handle float and
long constants
   Product: BCEL
   Version: 5.2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: mj.wilson...@googlemail.com


Created an attachment (id=24539)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=24539)
Test to demonstrate issues with float and long literals

BCELifier calls BCELFactory.  The BCELFactory.createConstant method does not
handle floats and longs correctly:

private void createConstant( Object value ) {
String embed = value.toString();
if (value instanceof String) {
embed = '' + Utility.convertString(embed) + '';
} else if (value instanceof Character) {
embed = (char)0x + Integer.toHexString(((Character)
value).charValue());
}
_out.println(il.append(new PUSH(_cp,  + embed + )););
} 

Note that the types String and char are handled separately.  As for the other
types, it's relying on there being an overloaded constructor of PUSH that takes
the constant in its correct form once it is converted to a String.

Let's examine all the other types:

- boolean:  Boolean.toString() produces the values true and false, which
javac picks up as booleans, e.g. new PUSH(_cp, false).

- byte, short, int:  Integer.toString() produces valid values.  In the
bytecode, there is no (significant) distinction between these types (except for
method signatures, fields, etc.).

- double:  Double.toString() produces valid values, e.g. new PUSH(_cp, 0.0).

- float:  Float.toString() produces values that look like doubles, e.g. new
PUSH(_cp, 0.0).  These are mishandled.

- long:  Long.toString() produces values that look like ints, e.g. new
PUSH(_cp, 0), or, even worse, new PUSH(_cp, 40) (which doesn't
compile).


I've attached two simple test cases that illustrate the issues.  Do the
following with BCEL-5.2.jar on your classpath:

% javac TestIncorrectLiterals.java
% java TestIncorrectLiterals
% java org.apache.bcel.util.BCELifier TestIncorrectLiterals
TestIncorrectLiteralsCreator.java
% javac TestIncorrectLiteralsCreator.java
% java TestIncorrectLiteralsCreator
% java TestIncorrectLiterals
Exception in thread main java.lang.VerifyError: (class:
TestIncorrectLiterals, method: main signature: ([Ljava/lang/String;)V)
Expecting to find float on stack


% javac TestOutOfRangeLiterals.java
% java TestOutOfRangeLiterals
% java org.apache.bcel.util.BCELifier TestOutOfRangeLiterals
TestOutOfRangeLiteralsCreator.java
% javac TestOutOfRangeLiteralsCreator.java
TestOutOfRangeLiteralsCreator.java:41: integer number too large: 40
InstructionHandle ih_0 = il.append(new PUSH(_cp, 40));
 ^
1 error


Here's my suggested fix:

private void createConstant( Object value ) {
String embed = value.toString();
if (value instanceof String) {
embed = '' + Utility.convertString(embed) + '';
} else if (value instanceof Character) {
embed = (char)0x + Integer.toHexString(((Character)
value).charValue());
} else if (value instanceof Float) {
embed += f;
} else if (value instanceof Long) {
embed += L;
}
_out.println(il.append(new PUSH(_cp,  + embed + )););
} 

I shall test out this fix, and report back.

This issue seems to exist in the SVN trunk code too.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-10-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

--- Comment #7 from Enrico Gueli enrico.gu...@polito.it 2009-10-28 03:46:09 
UTC ---
(In reply to comment #6)
 Damn, so close. It works with some classes, but BCEL-svn seems to die
 processing other classes with e.g.:
 
 Exception in thread main java.lang.ClassFormatError: Illegal constant pool
 index 29440 for method name in class file MyTestClass
 
 Probably unrelated to this bug though, as I have not yet got to putting
 annotations on that class.

Hello,
the same applies for me. I encountered the problem in this bug report, applied
the patch (with some handwork, because the HEAD (826342) revision is a bit
different) but I had to stop again in the same exception as yours. Only the
index changes, mine is 64764.

Best regards, Enrico

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47902] ExecutionVisitor doesn't support Class constant type for LDC and LDC_W

2009-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47902

--- Comment #2 from Enrico Gueli enrico.gu...@polito.it 2009-09-25 03:28:45 
PDT ---
Created an attachment (id=24310)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=24310)
ExecutionVisitor patch (updated)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47902] ExecutionVisitor doesn't support Class constant type for LDC and LDC_W

2009-09-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47902

--- Comment #1 from Enrico Gueli enrico.gu...@polito.it 2009-09-25 03:27:19 
PDT ---
(In reply to comment #0)
 Moreover, it would be desired to throw an exception when an unknown constant
 type is encountered, rather than doing nothing at all. 

I've just read the Javadoc of ExecutionVisitor, that states that it doesn't
check for correct types on the OperandStack. Therefore I remove the checks and
just add the class literal constant. Sorry for the inconvenience.

Enrico

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 38787] XSLT transforms broken in Turkish Locale.

2009-09-11 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=38787


Taner Mansur tmn...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


--- Comment #3 from Taner Mansur tmn...@gmail.com 2009-09-11 01:48:06 PDT ---
Latest bcel release, 5.2 still has this bug. Official jre have the bug in
com/sun/org/apache/bcel/internal/util/InstructionFinder.compilePattern. It
exists even in latest jre6 and jre1.5.0_21. It is not very hard to modify the
bcel source code and load it into bootclasspath before rt.jar but to be clean
it needs to be fixed. Will Apache or Sun fix this sometime?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-08-24 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073



--- Comment #6 from Len Trigg len...@gmail.com 2009-08-23 23:30:48 PDT ---
Damn, so close. It works with some classes, but BCEL-svn seems to die
processing other classes with e.g.:

Exception in thread main java.lang.ClassFormatError: Illegal constant pool
index 29440 for method name in class file MyTestClass

Probably unrelated to this bug though, as I have not yet got to putting
annotations on that class.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47248] New: org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248

   Summary: org.apache.bcel.classfile.ClassParser:
NullPointerException caused by fileopen failed
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: qweasd-v...@soukroma.cz


If line 119 - 127 of ClassParser.java fails (throws an Exception), the finally
is executed. However, fileOwned is true and file is null. It causes
NullPointerException.

FIX:
line 165: file.close();
replace by:
if(file != null){
file.close();
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47248] org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248


Vít Šesták aka v6ak qweasd-v...@soukroma.cz changed:

   What|Removed |Added

 Blocks||47249




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47249] New: org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47249

   Summary: org.apache.bcel.classfile.ClassParser:
NullPointerException caused by invalid filename
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: qweasd-v...@soukroma.cz
Depends on: 47248


121: ZipEntry entry = zip.getEntry(file_name);
Problem: if file_name is invalid, zip.getEntry(file_name) returns null. It
causes NullPointerException:
122: file = new DataInputStream(new
BufferedInputStream(zip.getInputStream(entry),
BUFSIZE));
// zip.getInputStream(entry) throws NullPointerException because entry is null!

Note that you will probably see another NullPointerException if #47248 is not
corrected.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47249] org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47249





--- Comment #1 from Vít Šesták aka v6ak qweasd-v...@soukroma.cz  2009-05-22 
11:42:53 PST ---
Try to insert after 121 code like this:
if(entry == null){
throw new IOException(File +file_name+ not found);
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47249] org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47249


Bug 47249 depends on bug 47248, which changed state.

Bug 47248 Summary: org.apache.bcel.classfile.ClassParser: NullPointerException 
caused by fileopen failed
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||FIXED



-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47248] org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

2009-05-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248


Dave Brosius dbros...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #1 from Dave Brosius dbros...@apache.org  2009-05-22 12:30:45 PST 
---
it appears that this fix already exists on trunk.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-05-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073


Len Trigg len...@gmail.com changed:

   What|Removed |Added

 CC||len...@gmail.com




--- Comment #1 from Len Trigg len...@gmail.com  2009-05-14 15:09:20 PST ---
I think I'm hitting this same problem (processing jdk1.6-generated class
files).  I applied your patch, but it does not make any changes to
StackMapTableEntry.dump() where the exception is being raised.

I assume there should be an

if (frame_type = Constants.SAME_FRAME  frame_type =
Constants.SAME_FRAME_MAX) {
...
} else 

after the initial write of frame_type, but what should be inside the if?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47072] New: Class files containing ParameterAnnotations are dumped incorrectly

2009-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47072

   Summary: Class files containing ParameterAnnotations are
dumped incorrectly
   Product: BCEL
   Version: 5.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: mulbr...@ira.uka.de


Created an attachment (id=23526)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23526)
proposed patch to fix this issue

A JavaClass containing methods with annotated parameters is dumped incorrectly.
The content of such annotation attributes is not dumped,
   ParameterAnnotationEntry.dump(DataOutputStream dos)
   ParameterAnnotations.dump(DataOutputStream dos)
were not implemented.

I propose the implementation in the attached diff. It works for my examples.


Regards,
   Mattias

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] New: Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

   Summary: Class files containing StackMapTable attributes (on
method code) are dumped incorrectly
   Product: BCEL
   Version: 5.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: mulbr...@ira.uka.de


Created an attachment (id=23528)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23528)
proposed patch to possibly fix this issue

When dumping an (untouched) class file containing a StackMap table, the result
is not faithful and cannot be be reloaded afterwards.

The problem, I reckon, is within the method StackMapTableEntry.dump. One case
raises an exception though it should not and other cases write byte values
though short values should be written instead.

The attached diff fixed the problem for my purposes, but I do not know whether
it is correct.

Regards,
Mattias

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 46722] problem using bcel in jdk15

2009-04-16 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46722





--- Comment #1 from psramkumar psramku...@adventnet.com  2009-04-16 04:14:52 
PST ---
Any update on this .We require this problem Solved ASAP

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 46584] New: dsa

2009-01-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46584

   Summary: dsa
   Product: BCEL
   Version: unspecified
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: smantha...@softsolindia.com
CC: smantha...@softsolindia.com


adadsa


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 46584] dsa

2009-01-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46584


Torsten Curdt tcu...@apache.org changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 46254] New: InstructionFactory, design issue, createDUP returns static reference

2008-11-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46254

   Summary: InstructionFactory, design issue, createDUP returns
static reference
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P5
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The implementation of the creation of some instructions e.g. DUPs / NOPs  is
really misleading. If you create an invokeinstruction or an constant like ldc a
new instruction object is created. Pretty straight forward! But if you create a
DUP instruction you always will get the same object back. This is of course is
great for saving memory, but in the following example it leads to lots of
problems.

Imagine you instrument a code sequence and add your own instructions one after
the other. You add invokestatic instructionsbut also the dups. At the end you
iterate again over the whole list to add some missing instructions ( doing it
in the first iteration is not possible or too much work, due to the semantics
of the algorithm). If you add new instructions again it will not work properly
if your insertion point is a DUP! The new instruction will be inserted at the
first match of the list.
e.g.
i1,... are instructions other than dup,
dup_ are DUP instructions created with InstructionFactory.createDUP();

you iterate from i1 to i6;

init:   i1, i2, i3, dup_1, i4, i5, dup_2, i6

1.)  insert(i3, new_i)
result:  i1, i2, new_i, i3, dup_1, i4, i5, dup_2, i6

2.) insert(dup_1, new_i2)
result:  i1, i2, new_i, i3, new_i2,  dup_1, i4, i5, dup_2, i6

3.) insert(dup_2, new_i3)
result:  i1, i2, new_i, i3, new_i2,  new_i3, dup_1, i4, i5, dup_2, i6

The reason for this is that dup_1 dup_2 point to the same static DUP instance
(there is always one). Your call to insert()
calls a method findInstruction() and this method only compares references (==)
and returns the first match.
Even if you use copy() you get the same reference! To omit this problem you
have to create an instance without the factory by using a constructor.

My point is, you can implement it this way BUT you have to mention this in the
API doc that this createDUP method does not behave like a createInvoke method
and always returns the same reference. I know usually the code is the
documentation but I think a lot of pain could be spared with a tiny little
sentence in the doc.

My suggestions for the doc of those methods:
Returns always a static reference. Note: may cause issues when used as
insertion points
or something like that


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2008-09-29 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #4 from Krishna Kunderu [EMAIL PROTECTED]  2008-09-28 23:39:17 
PST ---
Yes, as you said it's copy paste error in the forum post. Actually the error
came as you pointed out (ILoracle/sql/STRUCT;)V

I will try having the Synchronized method and I will post same issue to Oracle
OC4J community as well. Thanks for the help.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2008-09-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #2 from Krishna Kunderu [EMAIL PROTECTED]  2008-09-28 22:02:54 
PST ---
Could you please suggest how to make BCEL to be thread safe, directly in our
application, we are not using anywhere the BCEL related stuff. Internally I
suppose these classes would be called. Could you please suggest where exactly
we can fix this issue.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 45897] New: org.apache.bcel.classfile.ClassFormatException

2008-09-26 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897

   Summary: org.apache.bcel.classfile.ClassFormatException
   Product: BCEL
   Version: 5.1
  Platform: Sun
OS/Version: Solaris
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


During Deploying of our application in the application server (OC4J of Oracle)
we are getting some exception, while the application is getting deployed
without any issue. Below is the stack trace for the same.

At the first instance I feel like some concurrent issue in bcel happening for
the applications on application server. It could be that current version of
bcel (5.1) I am using is not thread safe.

I am not sure whether this is already an identified bug, if so please let me
know in which version of bcel, is this fixed?

java.lang.InstantiationException:
org.apache.bcel.classfile.ClassFormatException: Invalid method signature:
(ILoracle/sql/STR
UCT;)V
at
oracle.j2ee.connector.proxy.BCELProxyFactory.createProxy(BCELProxyFactory.java:382)
at
oracle.j2ee.connector.proxy.BCELProxyFactory.getProxy(BCELProxyFactory.java:141)
at
oracle.oc4j.sql.proxy.SQLBCELProxyFactory.getProxy(SQLBCELProxyFactory.java:47)
at
oracle.j2ee.connector.proxy.AbstractProxy.oc4j_getProxyForReturnedObject(AbstractProxy.java:105)
at oracle_jdbc_driver_T4CConnection_Proxy.prepareCall()
at com.hubinterface.helper.DbHelper.isSwitchOn(DbHelper.java:440)
at
com.hubinterface.helper.DbHelper.sendToDatabaseEoi(DbHelper.java:486)
at
com.hubinterface.helper.SubmitOrderAction.processRequest_EOI(SubmitOrderAction.java:478)
at com.hubinterface.mq.MQMessageListener.run(MQMessageListener.java:29)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.bcel.classfile.ClassFormatException: Invalid method
signature: (ILoracle/sql/STRUCT;)V
at org.apache.bcel.generic.Type.getArgumentTypes(Type.java:224)
at
oracle.oc4j.sql.proxy.SQLBCELProxyBuilder.buildMethod(SQLBCELProxyBuilder.java:171)
at
oracle.j2ee.connector.proxy.BCELProxyFactory.addInterfaceMethods(BCELProxyFactory.java:550)
at
oracle.j2ee.connector.proxy.BCELProxyFactory.addMethods(BCELProxyFactory.java:522)
at
oracle.j2ee.connector.proxy.BCELProxyFactory.createProxy(BCELProxyFactory.java:370)
... 9 more


Also sometimes when some concurrent requests are coming into our application
which is deployed on OC4J Application server, at some point in the code the
following exception is happening

2008-09-24 05:00:45,386|ERROR|sendToDatabaseSuspendResumeEoi Database error
when placing order: org.apache.bcel.classfile.ClassFormatException: Invalid
method signature: ava/lang/String;Ljava/lang/String;)V
2008-09-24 05:00:45,402|ERROR|processRequest_EOI Problem accessing R1OSS:
Database error when placing order (java.sql.SQLExce
ption: org.apache.bcel.classfile.ClassFormatException: Invalid method
signature: ava/lang/String;Ljava/lang/String;)V)
2008-09-24 05:00:45,402|ERROR|processRequest_EOI Problem accessing R1OSS
calling dbvalidateexceptions api: Database error whe
n placing order (java.sql.SQLException:
org.apache.bcel.classfile.ClassFormatException: Invalid method signature:
ava/lang/St
ring;Ljava/lang/String;)V)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2008-09-26 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897


Krishna Kunderu [EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

2008-09-26 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #1 from Dave Brosius [EMAIL PROTECTED]  2008-09-26 06:46:10 PST 
---
BCEL is not perported to be thread safe, it's up to you to enforce that.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28069] BCEL ClassParser throws ClassFormatException on Chinese locale class file

2008-09-12 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=28069





--- Comment #4 from Marat Radchenko [EMAIL PROTECTED]  2008-09-11 23:34:48 
PST ---
Stacktrace:

org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant
pool: 60
at org.apache.bcel.classfile.Constant.readConstant(Constant.java:146)
at org.apache.bcel.classfile.ConstantPool.init(ConstantPool.java:67)
at
org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:222)
at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136)
at
org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClassesAnalysis.java:92)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28069] BCEL ClassParser throws ClassFormatException on Chinese locale class file

2008-09-12 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=28069


Dave Brosius [EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 Status|REOPENED|RESOLVED
 Resolution||WONTFIX




--- Comment #5 from Dave Brosius [EMAIL PROTECTED]  2008-09-12 18:09:48 PST 
---
Running javap on the file, produces the same problems, so i believe this is
just a bad class file.

C:\javap -v LocaleElements_zh__PINYIN
java.lang.ClassFormatError: invalid constant type: 60
at sun.tools.javap.ClassData.readCP(ClassData.java:180)
at sun.tools.javap.ClassData.read(ClassData.java:81)
at sun.tools.javap.ClassData.init(ClassData.java:52)
at sun.tools.javap.JavapPrinter.init(JavapPrinter.java:28)
at sun.tools.javap.Main.displayResults(Main.java:201)
at sun.tools.javap.Main.perform(Main.java:61)
at sun.tools.javap.Main.entry(Main.java:49)
at sun.tools.javap.Main.main(Main.java:34)
ERROR:fatal error
Exception in thread main java.lang.NullPointerException
at sun.tools.javap.JavapPrinter.javaclassname(JavapPrinter.java:791)
at sun.tools.javap.JavapPrinter.printclassHeader(JavapPrinter.java:60)
at sun.tools.javap.JavapPrinter.print(JavapPrinter.java:36)
at sun.tools.javap.Main.displayResults(Main.java:202)
at sun.tools.javap.Main.perform(Main.java:61)
at sun.tools.javap.Main.entry(Main.java:49)
at sun.tools.javap.Main.main(Main.java:34)


I'd suggest looking at the tool that generated the class file.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44876] New: ArrayIndexOutOfBoundsException thrown from TABLESWITCH.initFromFile

2008-04-25 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=44876

   Summary: ArrayIndexOutOfBoundsException thrown from
TABLESWITCH.initFromFile
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Keywords: PatchAvailable
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21856)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=21856)
Proposed patch

BCEL throws the ArrayIndexOutOfBoundsException when trying to construct a new
org.apache.bcel.generic.MethodGen on a method containing the bytes compiled
from the following code:

switch (i) {
  case Integer.MAX_VALUE:
break;
  default:
b = true;
}

The method that does not handle this corner case correctly is
org.apache.bcel.generic.TABLESWITCH.initFromFile(ByteSequence, boolean).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44702] New: Calculation in LocalVariableTable. getLocalVariable is incorrect

2008-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=44702

   Summary: Calculation in LocalVariableTable.getLocalVariable is
incorrect
   Product: BCEL
   Version: 5.3
  Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21732)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=21732)
Patch to fix bug

The calculation in LocalVariableTable.getLocalVariable is incorrect:

 public final LocalVariable getLocalVariable( int index, int pc ) {
for (int i = 0; i  local_variable_table_length; i++) {
if (local_variable_table[i].getIndex() == index) {
int start_pc = local_variable_table[i].getStartPC();
int end_pc = start_pc + local_variable_table[i].getLength();
if ((pc = start_pc)  (pc  end_pc)) {
return local_variable_table[i];
}
}
}
return null;
}

From the VM spec:

The given local variable must have a value at indices into the code array in
the interval [start_pc, start_pc+length], that is, between start_pc and
start_pc+length inclusive. The value of start_pc must be a valid index into the
code array of this Code attribute and must be the index of the opcode of an
instruction. Either the value of start_pc+length must be a valid index into the
code array of this Code attribute and be the index of the opcode of an
instruction, or it must be the first index beyond the end of that code array.

The check should be pc = end_pc, not pc  end_pc.

This problem exists both in HEAD and in older versions.

I've attached a patch.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44702] Calculation in LocalVariableTable. getLocalVariable is incorrect

2008-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=44702


Torsten Curdt [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44702] Calculation in LocalVariableTable. getLocalVariable is incorrect

2008-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=44702


Torsten Curdt [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED




--- Comment #1 from Torsten Curdt [EMAIL PROTECTED]  2008-03-28 16:10:25 PST 
---
Patch applied. Thanks!


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41552] - Broken links in BCEL project changelog

2008-02-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41552.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41552


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Platform|Other   |All




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44359] New: - Make BCEL JAR OSGi compatible

2008-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44359.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44359

   Summary: Make BCEL JAR OSGi compatible
   Product: BCEL
   Version: 5.2
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P5
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Adding some entries to the MANIFEST.MF file will allow BCEL to be refered
transparently in OSGi environment

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44359] - Make BCEL JAR OSGi compatible

2008-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44359.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44359





--- Additional Comments From [EMAIL PROTECTED]  2008-02-05 12:30 ---
Created an attachment (id=21472)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=21472action=view)
pom.xml and manifest.mf file


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44359] - Make BCEL JAR OSGi compatible

2008-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44359.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44359


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Priority|P5  |P1




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44359] - Make BCEL JAR OSGi compatible

2008-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44359.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44359


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 40191] - Website: Incorrect URL for source; version 5.2 is not in the bug page

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40191.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40191


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43106] - Problem with JAXB if the bcel classloader is used

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43106.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43106


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2008-02-02 12:16 ---
Can you please provide some testcase or code snippet?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43732] - Error in method search() defined in org.apache.bcel.util.InstructionFinder

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43732.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43732


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2008-02-02 12:23 ---
Please verify

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43955] - Added a functinality to throw a classNotfoundException

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43955.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43955


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2008-02-02 12:26 ---
well ...provide a patch and we'll see :)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44083] - Problems with LVTT

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44083.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44083


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2008-02-02 12:29 ---
Do you think you could provide a patch for it?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44340] - BCEL is unnecessarily slow

2008-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44340.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44340


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2008-02-02 13:06 ---
Applied thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44212] New: - Type of 'this' on instantiation of MethodGen from existing Method

2008-01-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44212.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44212

   Summary: Type of 'this' on instantiation of MethodGen from
existing Method
   Product: BCEL
   Version: 5.2
  Platform: Other
OS/Version: Mac OS X 10.4
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I have an issue when instantiating a MethodGen from an existing (non-static) 
method instance. I'm 
trying to copy a (non-static) method from one class to another class using 
BCEL. Specifically, I do:

MethodGen newMethodGen = new MethodGen(originalMethod.getBCELMethod(), 
newClassGen.getClassName(), newClassGen.getConstantPool());

This works nicely except for one issue; the 'this' variable in the local 
variable table points to the entry in 
the CP representing the type of the originating class, and not the type of the 
class in which it is inserted 
in. 

I traced a bit in the BCEL code, and found that to start with during the 
instantiation process of the 
MethodGen class (in the constructor), the 'this' variable in the local variable 
table indeed points to the 
correct entry in the CP representing the type of the new class .. 

However, it appears that after the initial instantiation, the attributes of the 
provided originating method 
overrides the local variable table. Specifically, in the constructor (the lines 
213-229) the local variable 
table is deleted, and instead the local variable table of the provided original 
method is copied over.

From the documentation I cannot tell if this is by design, but it does appear 
to be a bit confusing; 
specifically, one can put a method into one class, but the 'this' variable 
points to another class. If this is 
by design, I would propose some exception throwing if the provided name of the 
class differs from 
class used in the local variable table.

Now we're at it .. invoking setClassName() on a MethodGen instance does also 
not make any changes to 
the local variable table -- again making it possible to have this inconsistency.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 44212] - Type of 'this' on instantiation of MethodGen from existing Method

2008-01-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=44212.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44212


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43955] New: - Added a functinality to throw a classNotfoundException

2007-11-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43955.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43955

   Summary: Added a functinality to throw a classNotfoundException
   Product: BCEL
   Version: unspecified
  Platform: Sun
OS/Version: Linux
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


I am a senior student of computer science at the University of
 Maryland. As one of my project, I am required to contribute to an open
 source  project.
  I came upon one error in your Apache BCEL program, more specifically
 in the file 
  Passe1Verifier. java. I have added the functionnality to allow the private 
  class JavaClass getJavaClass()to throw  ClassNotFoundException 
  whenever such an exception is caught.
  Originally the catch block was empty.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43795] - Deleting all instructions of a list shows wrong behaviour

2007-11-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43795.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43795


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-11-07 10:56 ---
Thanks, applied to trunk.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43795] New: - Deleting all instructions of a list shows wrong behaviour

2007-11-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43795.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43795

   Summary: Deleting all instructions of a list shows wrong
behaviour
   Product: BCEL
   Version: unspecified
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Deleting all instructions (i.e. everything from start to end) in a list shows 
the following behaviour:

 The length of the list is not 0 afterwards.
 Only the handle of the first instruction is disposed.

To fix the problem, apply the following patch:

Index: InstructionList.java
===
--- InstructionList.java(revision 592025)
+++ InstructionList.java(working copy)
@@ -677,8 +677,9 @@
 private void remove( InstructionHandle prev, InstructionHandle next )
 throws TargetLostException {
 InstructionHandle first, last; // First and last deleted instruction
-if ((prev == null)  (next == null)) { // singleton list
-first = last = start;
+if ((prev == null)  (next == null)) { 
+first = start;
+   last = end;
 start = end = null;
 } else {
 if (prev == null) { // At start of list

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43732] - Error in method search() defined in org.apache.bcel.util.InstructionFinder

2007-10-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43732.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43732





--- Additional Comments From [EMAIL PROTECTED]  2007-10-30 00:44 ---
Created an attachment (id=21058)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=21058action=view)
Desribe of the Bug, and two example to show the bug


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43511] - AnnotationDefault needs a dump method

2007-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43511.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43511


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-09-29 02:30 ---
Thanks, applied to trunk

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43511] - AnnotationDefault needs a dump method

2007-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43511.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43511


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43511] New: - AnnotationDefault needs a dump method

2007-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43511.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43511

   Summary: AnnotationDefault needs a dump method
   Product: BCEL
   Version: 5.3
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


While using bcel to read in and then write out an annotation that has a default
value without making any changes to it, I discovered that the resulting class
did not contain the annotation default.  The annotation looks something like 
this:

@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)
public @interface Foo
{
   String name() default ;
}

The missing bytes caused a (very misleading) NoClassDefFoundError when I tried
to load the new class.  
When I tried to decompile the new class, I got this error:
ItemCollectionInvalidIndex: constants: requested 1280, limit 27

After comparing the original class with the new class in a hex editor, I
determined that the bytes for the AnnotationDefault were missing.  The problem
is that the AnnotationDefault class does not have a dump method.  I added a dump
method and this fixed the problem.  Here's a diff of the new method:

$ svn diff
Index: src/main/java/org/apache/bcel/classfile/AnnotationDefault.java
===
--- src/main/java/org/apache/bcel/classfile/AnnotationDefault.java 
(revision 573325)
+++ src/main/java/org/apache/bcel/classfile/AnnotationDefault.java  (working
copy)
@@ -18,6 +18,7 @@

 import java.io.DataInputStream;
 import java.io.IOException;
+import java.io.DataOutputStream;
 import org.apache.bcel.Constants;

 /**
@@ -105,4 +106,10 @@
{
throw new RuntimeException(Not implemented yet!);
}
+
+public final void dump(DataOutputStream dos) throws IOException
+{
+  super.dump(dos);
+  default_value.dump(dos);
+}
 }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43367] - MethodGen.setMaxLocals() calculates too small max locals, which results in a ClassFormatError when loading the modified class

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43367.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43367





--- Additional Comments From [EMAIL PROTECTED]  2007-09-13 03:38 ---
Created an attachment (id=20810)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=20810action=view)
Example how to reproduce the issue.

Start the Reproducer with java -cp bcel.jar:. Reproducer - the example
instrument the constructor of it's own class, adds a field, and tries to load
the modified class.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43391] New: - ARRAYLENGTH incorrectly not StackConsumer

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43391.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43391

   Summary: ARRAYLENGTH incorrectly not StackConsumer
   Product: BCEL
   Version: 5.2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: PatchAvailable
  Severity: normal
  Priority: P3
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


According to the JVM Instruction Set, ARRAYLENGTH pops a value from the stack
and pushes a value to the stack. In BCEL, it only implements StackProducer, so
it creates an incorrectly high stack height. The Constants class already has the
correct value for it, but since the instruction does not implement StackConsumer
it is never used. The easiest solution is to change
src\java\src\java\org\apache\bcel\generic\ARRAYLENGTH.java to implement
StackConsumer. This will fix the bug.

I didn't attach a patch for this because the change is so tiny.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43367] New: - MethodGen.setMaxLocals() calculates too small max locals, which results in a ClassFormatError when loading the modified class

2007-09-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43367.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43367

   Summary: MethodGen.setMaxLocals() calculates too small max
locals, which results in a ClassFormatError when loading
the modified class
   Product: BCEL
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Revision 574984 (trunk)

When a local variable is added to a method, the max_locals are incremented in
addLocalVariable (set to slot + size of type).
However, when no other transformations are made, and setMaxLocals() is called,
the bytecode is searched for the max variable index, and max_locals set to that
index + size of that entry. The old max_locals which was set by adding the field
is overwritten by this number.

If the LocalVariableTable for that method exists, the Java VM won't load the
class, because the max_locals determined by bcel is smaller than the max locals
determined from the localvariabletable = ClassFormatException.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43106] - Problim with JAXB if the bcel classloader is used

2007-08-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43106.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43106


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Priority|P3  |P2




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43106] New: - Problim with JAXB if the bcel classloader is used

2007-08-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43106.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43106

   Summary: Problim with JAXB if the bcel classloader is used
   Product: BCEL
   Version: 5.2
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P3
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


When I try to run program with a JAXB code I got an exception if the bcel
classloader is used.

Exception in thread main java.lang.LinkageError: Class org/xml/sax/InputSource
violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.apache.bcel.util.ClassLoader.loadClass(ClassLoader.java:127)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
advdebug.config.parser.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:145)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:163)
at test.Test.main(Test.java:47)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43029] - [EMAIL PROTECTED]

2007-08-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43029.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43029


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43029] - [EMAIL PROTECTED]

2007-08-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43029.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43029


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42612] - accessing full signatures of local variables that contain generics

2007-06-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42612.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42612





--- Additional Comments From [EMAIL PROTECTED]  2007-06-14 03:27 ---
Torsten means that you should download  compile a copy of the current trunk
version (from the SVN) and see if the bug still appears there.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41660] - Fields in Annotations and AnnotationEntry are private, should be protected

2007-06-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41660.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41660





--- Additional Comments From [EMAIL PROTECTED]  2007-06-13 12:21 ---
Can someone please review this patch? It's a very simple fix. If you like, I 
can submit another one that 
uses accessor methods instead of protected fields.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42612] - accessing full signatures of local variables that contain generics

2007-06-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42612.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42612


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC|[EMAIL PROTECTED] |




--- Additional Comments From [EMAIL PROTECTED]  2007-06-13 13:46 ---
(In reply to comment #1)
 please try BCEL trunk

Could you please provide more information on BCEL trunk. If BCEL trunk relates 
to source repository (web access) @ 
http://svn.apache.org/repos/asf/jakarta/bcel/trunk, I found nothing that 
helped. Thanks. 



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42612] - accessing full signatures of local variables that contain generics

2007-06-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42612.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42612





--- Additional Comments From [EMAIL PROTECTED]  2007-06-06 23:43 ---
please try BCEL trunk

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42552] - Thread safety + unbuffered writes

2007-06-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42552.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42552


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42552] - Thread safety + unbuffered writes

2007-05-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42552.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42552





--- Additional Comments From [EMAIL PROTECTED]  2007-05-30 17:56 ---
Created an attachment (id=20294)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=20294action=view)
Patch


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42402] - Javadoc overhaul

2007-05-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42402.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42402





--- Additional Comments From [EMAIL PROTECTED]  2007-05-16 12:02 ---
TYPE_NAMES, CLASS_TYPE_NAMES, and SHORT_TYPE_NAMES (in
org.apache.bcel.Constants) were missing entries for T_ADDRESS.  Entries
address, ILLEGAL_TYPE, and ILLEGAL_TYPE (respectively) have been added to my 
copy.

I should have a patch for Constants.java momentarily, I'm around 98% through the
file.

-Charlie

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42402] - Javadoc overhaul

2007-05-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42402.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42402





--- Additional Comments From [EMAIL PROTECTED]  2007-05-14 09:24 ---
Charlie, your help would surely be appreciated.
Trunk would be the right place for it.
Cheers, Torsten

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42165] New: - RPM package spec incorrect - won't install properly under anaconda

2007-04-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42165.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42165

   Summary: RPM package spec incorrect - won't install properly
under anaconda
   Product: BCEL
   Version: 5.1
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The package spec for bcel does not properly specify an installation
prerequisite, which is necessary for its %pre script to run.

The package's %pre script requires the rm utility which is part of coreutils.

The pacakge should have:

Requires(pre): coreutils

(the Prereq: directive is deprecated and does not function as it used to)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42015] - Verifier fails in pass 2 with Number of LocalVariableTable attributes of Code attribute on static methods.

2007-04-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42015.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42015


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-06 10:44 ---
Thanks! Applied!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41974] - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations

2007-04-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41974.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41974


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-01 07:55 ---
Thanks! Applied!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry

2007-04-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39695


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-01 07:59 ---
Thanks! Applied!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 40577] - return type not verified by JustIce

2007-04-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40577.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40577





--- Additional Comments From [EMAIL PROTECTED]  2007-04-01 14:58 ---
Created an attachment (id=19863)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19863action=view)
basic implementation

This class is used to test the happy scenarios

public class Test
{
String ss4;
static String ss6;
static String ss9;

public String getSS()
{
return getSS1();
}

public String getSS1()
{
return (String)getSS2();
}

public Object getSS2()
{
return getSS3();
}

public String getSS3()
{
return ;
}

public String getSS4()
{
return ss4;
}

public String getSS5()
{
String ss5 = ;
return ss5;
}

public String getSS6()
{
return ss6;
}

public Test getSS7()
{
return this;
}

public int getSS8()
{
return 1;
}

public String getSS9()
{
ss9 = 1;
return ss6;
}

public String[] getSS10()
{
String[] ss10 = new String[1];
ss10[0] = ;
return ss10;
}

}


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42015] New: - Verifier fails in pass 2 with Number of LocalVariableTable attributes of Code attribute on static methods.

2007-04-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42015.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42015

   Summary: Verifier fails in pass 2 with Number of
LocalVariableTable attributes of Code attribute on
static methods.
   Product: BCEL
   Version: 5.2
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Result
Pass 2:
Number of LocalVariableTable attributes of Code attribute 'CODE' (method
'public static String getSS9()') exceeds number of local variable slots '0'
('There may be no more than one LocalVariableTable attribute per local variable
in the Code attribute.').

Test code:

public class Test
{
String ss4;
static String ss6;
static String ss9;

public String getSS()
{
return getSS1();
}

public String getSS1()
{
return (String)getSS2();
}

public Object getSS2()
{
return getSS3();
}

public String getSS3()
{
return ;
}

public String getSS4()
{
return ss4;
}

public String getSS5()
{
String ss5 = ;
return ss5;
}

public String getSS6()
{
return ss6;
}

public Test getSS7()
{
return this;
}

public int getSS8()
{
return 1;
}

public static String getSS9()
{
if( true )
{
return ss6;
}
return ss9;
}

public String[] getSS10()
{
String[] ss10 = new String[1];
ss10[0] = ;
return ss10;
}

}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33549] - LocalVariableTypeTable seems not to be updated like LocalVariableTable

2007-04-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=33549.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33549





--- Additional Comments From [EMAIL PROTECTED]  2007-04-01 15:16 ---
It looks like a dup of http://issues.apache.org/bugzilla/show_bug.cgi?id=39695

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39771] - BCEL 5.2 is not source compatible with 5.1

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39771.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39771





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 08:24 ---
Sure, you mean along the lines of a patch for the JavaDocs, or in some other
location (changes, readme)?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39771] - BCEL 5.2 is not source compatible with 5.1

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39771.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39771





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 08:31 ---
Whereever you would have expected it :)

But changes, readme and javadocs sounds good.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry

2007-03-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39695





--- Additional Comments From [EMAIL PROTECTED]  2007-03-28 11:41 ---
Created an attachment (id=19834)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19834action=view)
copying the LVTT entries from method to MethodGen

This patch fixes this issue to me.

The fix is with copying the LVTT entries from method to MethodGen.

In addition, a cosmetic change in the MethodGen.toString method to output the
signature attributes, same as Method.toString does.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41974] New: - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations

2007-03-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41974.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41974

   Summary: verifier raises AssertionViolatedException when done
against Java5 files with generics/annotations
   Product: BCEL
   Version: 5.2
  Platform: Other
OS/Version: other
Status: NEW
  Severity: blocker
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Running the verifier against the class:

package org.jpox.samples.jpa.company;

import java.util.Collection;
import java.util.HashSet;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class GenericsPerson
{
public String id;
CollectionPerson persons = new HashSetPerson();

@Id
public String getId()
{
return id;
}

public void setId(String id)
{
this.id = id;
}

public void setPersons(CollectionPerson perss)
{
this.persons = perss;
}

public CollectionPerson getPersons()
{
return persons;
}
}


Gives this error output:

JustIce by Enver Haase, (C) 2001-2002.
http://bcel.sourceforge.net
http://jakarta.apache.org/bcel

Now verifying: org.jpox.samples.jpa.company.GenericsPerson

Pass 1:
VERIFIED_OK
Passed verification.

Exception in thread main
org.apache.bcel.verifier.exc.AssertionViolatedException: INTERNAL ERROR: Please
adapt 'class org.apache.bcel.verifier.statics.StringRepresentation' to deal with
objects of class 'class org.apache.bcel.classfile.RuntimeVisibleAnnotations'.
at
org.apache.bcel.verifier.statics.StringRepresentation.toString(StringRepresentation.java:98)
at 
org.apache.bcel.verifier.statics.Pass2Verifier.tostring(Pass2Verifier.java:1442)
at 
org.apache.bcel.verifier.statics.Pass2Verifier.access$0(Pass2Verifier.java:1441)
at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.visitJavaClass(Pass2Verifier.java:387)
at org.apache.bcel.classfile.JavaClass.accept(JavaClass.java:213)
at
org.apache.bcel.classfile.DescendingVisitor.visitJavaClass(DescendingVisitor.java:94)
at org.apache.bcel.classfile.JavaClass.accept(JavaClass.java:213)
at 
org.apache.bcel.classfile.DescendingVisitor.visit(DescendingVisitor.java:88)
at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.init(Pass2Verifier.java:357)
at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.init(Pass2Verifier.java:337)
at
org.apache.bcel.verifier.statics.Pass2Verifier.constant_pool_entries_satisfy_static_constraints(Pass2Verifier.java:298)
at 
org.apache.bcel.verifier.statics.Pass2Verifier.do_verify(Pass2Verifier.java:159)
at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:71)
at org.apache.bcel.verifier.Verifier.doPass2(Verifier.java:75)
at org.apache.bcel.verifier.Verifier.main(Verifier.java:217)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41974] - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations

2007-03-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41974.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41974





--- Additional Comments From [EMAIL PROTECTED]  2007-03-28 11:49 ---
Created an attachment (id=19835)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19835action=view)
add visitAnnotation and visitLocalVariableTypeTable to StringRepresentation


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry

2007-03-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39695





--- Additional Comments From [EMAIL PROTECTED]  2007-03-28 11:59 ---
I forgot to say that the patch attached (2007-03-28 11:41), fix the case where a
setter having a generic argument is bytecode modified using BCEL. I dont know if
there are other cases. The patch works for me, for several classes and several
scenarios.

public void setEmployees(CollectionEmployee employees)
{
this.employees = employees;
}


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry

2007-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39695





--- Additional Comments From [EMAIL PROTECTED]  2007-03-27 15:18 ---
Just tried with HEAD and does not work

java.lang.ClassFormatError: LVTT entry for 'employees' in class file

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry

2007-03-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39695


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41794] - Maven POM file calls in apache regex but code does not use it

2007-03-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41794.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41794


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-03-10 06:48 ---
Thanks, applied. Please next time attach the patches.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 41795] - ClassParser throws unintelligible Exception

2007-03-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41795.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41795


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-03-10 06:51 ---
Thanks, applied. Please attach the diff next time.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   >