Macintosh-3 nxt SMI compile sh src java nxt Account java 59 expected t

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
Macintosh-3:nxt 2 SMI$ ./compile.sh
src/java/nxt/Account.java:59: '{' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_asset "
^
src/java/nxt/Account.java:59: ')' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_asset "
^
src/java/nxt/Account.java:61: ';' expected
+ "KEY (account_id, asset_id, height) VALUES (?, ?, ?, ?, ?, TRUE)")) {
^
src/java/nxt/Account.java:59: 'try' without 'catch' or 'finally'
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_asset "
^
src/java/nxt/Account.java:72: illegal start of expression
public long getAccountId() {
^
src/java/nxt/Account.java:72: ';' expected
public long getAccountId() {
^
src/java/nxt/Account.java:76: illegal start of expression
public long getAssetId() {
^
src/java/nxt/Account.java:76: ';' expected
public long getAssetId() {
^
src/java/nxt/Account.java:80: illegal start of expression
public long getQuantityQNT() {
^
src/java/nxt/Account.java:80: ';' expected
public long getQuantityQNT() {
^
src/java/nxt/Account.java:84: illegal start of expression
public long getUnconfirmedQuantityQNT() {
^
src/java/nxt/Account.java:84: ';' expected
public long getUnconfirmedQuantityQNT() {
^
src/java/nxt/Account.java:88: illegal start of expression
private void save() {
^
src/java/nxt/Account.java:88: illegal start of expression
private void save() {
^
src/java/nxt/Account.java:88: ';' expected
private void save() {
^
src/java/nxt/Account.java:98: ';' expected
public String toString() {
^
src/java/nxt/Account.java:131: '{' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_currency "
^
src/java/nxt/Account.java:131: ')' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_currency "
^
src/java/nxt/Account.java:133: ';' expected
+ "KEY (account_id, currency_id, height) VALUES (?, ?, ?, ?, ?, TRUE)")) {
^
src/java/nxt/Account.java:131: 'try' without 'catch' or 'finally'
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account_currency "
^
src/java/nxt/Account.java:144: illegal start of expression
public long getAccountId() {
^
src/java/nxt/Account.java:144: ';' expected
public long getAccountId() {
^
src/java/nxt/Account.java:148: illegal start of expression
public long getCurrencyId() {
^
src/java/nxt/Account.java:148: ';' expected
public long getCurrencyId() {
^
src/java/nxt/Account.java:152: illegal start of expression
public long getUnits() {
^
src/java/nxt/Account.java:152: ';' expected
public long getUnits() {
^
src/java/nxt/Account.java:156: illegal start of expression
public long getUnconfirmedUnits() {
^
src/java/nxt/Account.java:156: ';' expected
public long getUnconfirmedUnits() {
^
src/java/nxt/Account.java:160: illegal start of expression
private void save() {
^
src/java/nxt/Account.java:160: illegal start of expression
private void save() {
^
src/java/nxt/Account.java:160: ';' expected
private void save() {
^
src/java/nxt/Account.java:170: ';' expected
public String toString() {
^
src/java/nxt/Account.java:210: illegal start of type
List<Account> leaseChangingAccounts = new ArrayList<>();
^
src/java/nxt/Account.java:211: '{' expected
try (DbIterator<Account> accounts = getLeaseChangingAccounts(height)) {
^
src/java/nxt/Account.java:211: ')' expected
try (DbIterator<Account> accounts = getLeaseChangingAccounts(height)) {
^
src/java/nxt/Account.java:211: ';' expected
try (DbIterator<Account> accounts = getLeaseChangingAccounts(height)) {
^
src/java/nxt/Account.java:211: 'try' without 'catch' or 'finally'
try (DbIterator<Account> accounts = getLeaseChangingAccounts(height)) {
^
src/java/nxt/Account.java:245: illegal start of type
}, BlockchainProcessor.Event.AFTER_BLOCK_APPLY);
^
src/java/nxt/Account.java:245: ';' expected
}, BlockchainProcessor.Event.AFTER_BLOCK_APPLY);
^
src/java/nxt/Account.java:245: illegal start of type
}, BlockchainProcessor.Event.AFTER_BLOCK_APPLY);
^
src/java/nxt/Account.java:245: ';' expected
}, BlockchainProcessor.Event.AFTER_BLOCK_APPLY);
^
src/java/nxt/Account.java:245: <identifier> expected
}, BlockchainProcessor.Event.AFTER_BLOCK_APPLY);
^
src/java/nxt/Account.java:247: ')' expected
}
^
src/java/nxt/Account.java:249: illegal start of expression
private static final DbKey.LongKeyFactory<Account> accountDbKeyFactory = new DbKey.LongKeyFactory<Account>("id") {
^
src/java/nxt/Account.java:249: ';' expected
private static final DbKey.LongKeyFactory<Account> accountDbKeyFactory = new DbKey.LongKeyFactory<Account>("id") {
^
src/java/nxt/Account.java:258: illegal start of expression
private static final VersionedEntityDbTable<Account> accountTable = new VersionedEntityDbTable<Account>("account", accountDbKeyFactory) {
^
src/java/nxt/Account.java:258: illegal start of expression
private static final VersionedEntityDbTable<Account> accountTable = new VersionedEntityDbTable<Account>("account", accountDbKeyFactory) {
^
src/java/nxt/Account.java:258: ';' expected
private static final VersionedEntityDbTable<Account> accountTable = new VersionedEntityDbTable<Account>("account", accountDbKeyFactory) {
^
src/java/nxt/Account.java:272: illegal start of expression
private static final DbKey.LinkKeyFactory<AccountAsset> accountAssetDbKeyFactory = new DbKey.LinkKeyFactory<AccountAsset>("account_id", "asset_id") {
^
src/java/nxt/Account.java:272: illegal start of expression
private static final DbKey.LinkKeyFactory<AccountAsset> accountAssetDbKeyFactory = new DbKey.LinkKeyFactory<AccountAsset>("account_id", "asset_id") {
^
src/java/nxt/Account.java:272: ';' expected
private static final DbKey.LinkKeyFactory<AccountAsset> accountAssetDbKeyFactory = new DbKey.LinkKeyFactory<AccountAsset>("account_id", "asset_id") {
^
src/java/nxt/Account.java:281: illegal start of expression
private static final VersionedEntityDbTable<AccountAsset> accountAssetTable = new VersionedEntityDbTable<AccountAsset>("account_asset", accountAssetDbKeyFactory) {
^
src/java/nxt/Account.java:281: illegal start of expression
private static final VersionedEntityDbTable<AccountAsset> accountAssetTable = new VersionedEntityDbTable<AccountAsset>("account_asset", accountAssetDbKeyFactory) {
^
src/java/nxt/Account.java:281: ';' expected
private static final VersionedEntityDbTable<AccountAsset> accountAssetTable = new VersionedEntityDbTable<AccountAsset>("account_asset", accountAssetDbKeyFactory) {
^
src/java/nxt/Account.java:300: illegal start of expression
private static final DbKey.LinkKeyFactory<AccountCurrency> accountCurrencyDbKeyFactory = new DbKey.LinkKeyFactory<AccountCurrency>("account_id", "currency_id") {
^
src/java/nxt/Account.java:300: illegal start of expression
private static final DbKey.LinkKeyFactory<AccountCurrency> accountCurrencyDbKeyFactory = new DbKey.LinkKeyFactory<AccountCurrency>("account_id", "currency_id") {
^
src/java/nxt/Account.java:300: ';' expected
private static final DbKey.LinkKeyFactory<AccountCurrency> accountCurrencyDbKeyFactory = new DbKey.LinkKeyFactory<AccountCurrency>("account_id", "currency_id") {
^
src/java/nxt/Account.java:309: illegal start of expression
private static final VersionedEntityDbTable<AccountCurrency> accountCurrencyTable = new VersionedEntityDbTable<AccountCurrency>("account_currency", accountCurrencyDbKeyFactory) {
^
src/java/nxt/Account.java:309: illegal start of expression
private static final VersionedEntityDbTable<AccountCurrency> accountCurrencyTable = new VersionedEntityDbTable<AccountCurrency>("account_currency", accountCurrencyDbKeyFactory) {
^
src/java/nxt/Account.java:309: ';' expected
private static final VersionedEntityDbTable<AccountCurrency> accountCurrencyTable = new VersionedEntityDbTable<AccountCurrency>("account_currency", accountCurrencyDbKeyFactory) {
^
src/java/nxt/Account.java:328: illegal start of expression
private static final DerivedDbTable accountGuaranteedBalanceTable = new DerivedDbTable("account_guaranteed_balance") {
^
src/java/nxt/Account.java:328: illegal start of expression
private static final DerivedDbTable accountGuaranteedBalanceTable = new DerivedDbTable("account_guaranteed_balance") {
^
src/java/nxt/Account.java:328: ';' expected
private static final DerivedDbTable accountGuaranteedBalanceTable = new DerivedDbTable("account_guaranteed_balance") {
^
src/java/nxt/Account.java:332: '{' expected
try (Connection con = Db.db.getConnection();
^
src/java/nxt/Account.java:332: ')' expected
try (Connection con = Db.db.getConnection();
^
src/java/nxt/Account.java:334: ';' expected
+ "WHERE height < ?")) {
^
src/java/nxt/Account.java:337: 'catch' without 'try'
} catch (SQLException e) {
^
src/java/nxt/Account.java:337: ')' expected
} catch (SQLException e) {
^
src/java/nxt/Account.java:337: not a statement
} catch (SQLException e) {
^
src/java/nxt/Account.java:337: ';' expected
} catch (SQLException e) {
^
src/java/nxt/Account.java:332: 'try' without 'catch' or 'finally'
try (Connection con = Db.db.getConnection();
^
src/java/nxt/Account.java:344: illegal start of type
private static final Listeners<Account,Event> listeners = new Listeners<>();
^
src/java/nxt/Account.java:346: illegal start of type
private static final Listeners<AccountAsset,Event> assetListeners = new Listeners<>();
^
src/java/nxt/Account.java:348: illegal start of type
private static final Listeners<AccountCurrency,Event> currencyListeners = new Listeners<>();
^
src/java/nxt/Account.java:350: illegal start of type
private static final Listeners<AccountLease,Event> leaseListeners = new Listeners<>();
^
src/java/nxt/Account.java:545: invalid method declaration; return type required
private Account(long id) {
^
src/java/nxt/Account.java:555: invalid method declaration; return type required
private Account(ResultSet rs) throws SQLException {
^
src/java/nxt/Account.java:580: '{' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account (id, creation_height, public_key, "
^
src/java/nxt/Account.java:580: ')' expected
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account (id, creation_height, public_key, "
^
src/java/nxt/Account.java:585: ';' expected
+ "KEY (id, height) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, TRUE)")) {
^
src/java/nxt/Account.java:580: 'try' without 'catch' or 'finally'
try (PreparedStatement pstmt = con.prepareStatement("MERGE INTO account (id, creation_height, public_key, "
^
src/java/nxt/Account.java:614: illegal start of expression
public long getId() {
^
src/java/nxt/Account.java:614: ';' expected
public long getId() {
^
src/java/nxt/Account.java:618: illegal start of expression
public String getName() {
^
src/java/nxt/Account.java:618: ';' expected
public String getName() {
^
src/java/nxt/Account.java:622: illegal start of expression
public String getDescription() {
^
src/java/nxt/Account.java:622: ';' expected
public String getDescription() {
^
src/java/nxt/Account.java:626: illegal start of expression
public Pattern getMessagePattern() {
^
src/java/nxt/Account.java:626: ';' expected
public Pattern getMessagePattern() {
^
src/java/nxt/Account.java:630: illegal start of expression
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:630: ';' expected
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:630: ';' expected
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:630: not a statement
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:630: ';' expected
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:630: ';' expected
void setAccountInfo(String name, String description, Pattern messagePattern) {
^
src/java/nxt/Account.java:637: illegal start of expression
public byte[] getPublicKey() {
^
src/java/nxt/Account.java:637: ';' expected
public byte[] getPublicKey() {
^
src/java/nxt/Account.java:644: illegal start of expression
private int getCreationHeight() {
^
src/java/nxt/Account.java:644: ';' expected
private int getCreationHeight() {
^
src/java/nxt/Account.java:648: illegal start of expression
private int getKeyHeight() {
^
100 errors
Macintosh-3:nxt 2 SMI$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
Macintosh-3:nxt 2 SMI$ which javac
/usr/bin/javac
Macintosh-3:nxt 2 SMI$