Skip to content

Commit

Permalink
Fix the assertion to correctly check prefix for an array type (payara…
Browse files Browse the repository at this point in the history
…#1432)

Fix the assertion to correctly check prefix for an array type PAYARA-1502
  • Loading branch information
realityforge authored and lprimak committed Jul 5, 2017
1 parent 5feba5c commit e3e2498
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void annotateClass(ObjectOutputStream out, Class<?> cl) throws IOExceptio

private Class loadArrayClass(Bundle b, String cname) throws ClassNotFoundException {
// We are never called with primitive types, so we don't have to check for primitive types.
assert(cname.charAt(0) == 'L'); // An array
assert(cname.charAt(0) == '['); // An array
Class component; // component class
int dcount; // dimension
for (dcount = 1; cname.charAt(dcount) == '['; dcount++){
Expand Down

0 comments on commit e3e2498

Please sign in to comment.