This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | AssertionError at com.sun.tools.javac.comp.Attr.visitTree | ||
---|---|---|---|
Product: | java | Reporter: | jag <jag> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | athompson, bburette, Chiana, drazisil, ehsavoie, EntityReborn, fvogler, gholmer, gtg, jag, jbsabmello, jglick, jrwhitley, mkhramov, narsereg, pjiricka, rdion, Salamander, sreimers, stefan79, tboudreau, zdenek.rod |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 197116 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace Dump file requested by error dialog. stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
jag
2013-02-14 22:38:27 UTC
Created attachment 131403 [details]
stacktrace
Created attachment 131442 [details]
stacktrace
Just sent error report
accidentally added a non-Throwable arg to a catch statement Created attachment 131664 [details]
stacktrace
Created attachment 131762 [details]
stacktrace
Created attachment 131778 [details]
stacktrace
Created attachment 131786 [details]
stacktrace
Simply coding along, typed a { to begin a compound statement;
@Override
public SimpleMetaData getTableInfo(String tableName) {
try {
DatabaseMetaData meta = getConnection().getMetaData();
ResultSet schemas = meta.getTables(null, null, tableName, null);
if (schemas.next()) { <=- typed this brace
} catch (SQLException e) {
throw new RuntimeException("Unable to access database", e);
}
return null;
}
}
Created attachment 131787 [details]
stacktrace
pasted;
ResultSet rs = entityManagerFactory().dbDriver.getConnection().createStatement().executeQuery(
"SELECT * FROM " + tableName + " WHERE 1=0");
ResultSetMetaData metaData = rs.getMetaData();
int colCount = metaData.getColumnCount();
for (int i = 1; i <= colCount; i++) {
into;
public SimpleMetaData getTableInfo(String tableName) {
try {
DatabaseMetaData meta = getConnection().getMetaData();
ResultSet schemas = meta.getTables(null, null, tableName, null);
if (schemas.next()) {
ResultSet rs = entityManagerFactory().dbDriver.getConnection().createStatement().executeQuery(
"SELECT * FROM " + tableName + " WHERE 1=0");
ResultSetMetaData metaData = rs.getMetaData();
int colCount = metaData.getColumnCount();
for (int i = 1; i <= colCount; i++) {
} else {
return null;
}
} catch (SQLException e) {
throw new RuntimeException("Unable to access database", e);
}
r
Created attachment 131788 [details]
stacktrace
Typed an { again, snippet;
public Object select(TableData table,
Object key,
TableColumn where) {
String stmt="SELECT * FROM ?";
if (key!=null) {
stmt+=" WHERE ?=?";
}try {
PreparedStatement ps=getConnection().prepareStatement(stmt);
ps.setString(1, table.tableName());
if (key != null) {
ps.setString(2, where.colName());
ps.setObject(3, key);
}
ResultSet rs=ps.executeQuery();
// Now build an array of all entries
while (rs.next()) { <=- Typed this "{"
} catch (SQLException e) {
throw new RuntimeException(e);
}
return null;
}
Created attachment 131849 [details]
stacktrace
I opened brace. After this brace I have few lines of comments and closing brace of catch. I wanted add one more closing brace but got this error.
Smth like this:
if (){
// Comments
//
} catch
Created attachment 131976 [details]
stacktrace
Moving braces around, making code (very) temporarily ill-formed.
Created attachment 131977 [details]
stacktrace
Wrote construction like this one:
new LinkTerUser.class
Created attachment 132490 [details]
stacktrace
Trying to type try {
Created attachment 132536 [details]
Dump file requested by error dialog.
Created attachment 132537 [details]
stacktrace
Editing a TestNG class.
Created attachment 132607 [details]
stacktrace
Pasted some code in a Java file.
Created attachment 132667 [details]
stacktrace
Had introduced a new if-statement which temporarily made the file syntactically malformed.
Created attachment 132789 [details]
stacktrace
Deleted some code in Try part of try catch statement
Created attachment 132828 [details]
stacktrace
Created attachment 132843 [details]
stacktrace
In the middle of editing.
Created attachment 132863 [details]
stacktrace
Writen in a Java-File:
"try " (while tryieng to write the "}", this Exception occured)
Remote-Debugging was running.
Created attachment 132864 [details]
stacktrace
Created attachment 133146 [details]
stacktrace
Typing
Almost 100 dups, isn't this close to beeing P2 by now? Already fixed. *** This bug has been marked as a duplicate of bug 227420 *** Cool! Can the fix get merged to the daily builds? |