---
title: "自己写出了有意思的bug"
author: "董瑞龙"
date: "2012-03-02T11:45:55Z"
tags: []
categories: ["编程语言"]
slug: "bug"
draft: false
lastmod: "2012-03-02T11:45:39Z"
id: 1435347
url: "https://rylan.iteye.com/blog/1435347"
---

```java

while (quoteItemTableJsonArray.getJSONObject(0).keys().hasNext()); {
					columnName = (String) quoteItemTableJsonArray.getJSONObject(0).keys().next();
					chunk = new Chunk(rowJsonObject.getString(columnName), FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL,BaseColor.BLACK));  
					paragraph = new Paragraph(chunk);
					paragraph.setAlignment(Element.ALIGN_CENTER);
					chunk.setTextRise(4);
					cell = new PdfPCell();
					cell.addElement(paragraph);
					quoteItemTable.addCell(cell);
				}

```


这段代码是由 do{}while（）；改过来的，陷入了死循环，你能发现原因么?