Details
-
Bug
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.0
-
None
-
Release Notes
-
-
Documented as Resolved Issue
Description
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5453
----------------------------------------------
Although it is unlikely that a class will have more than 409600 bytes, ByteCodeHelper.readByteCode() will fail in this case.
The programmer's intention was clear: handle any file size; but he or she forgot to add a call to inputStream.read() at the end of the loop
...
r = inputStream.read( buffer );
while ( r >= buffer.length )
Attachments
Issue Links
- clones
-
JBPAPP-5694 CLONE - HHH-5453 ByteCodeHelper.readByteCode won't load classes bigger than a constant size
- Closed