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.

Bug 124604 - Binary I/O implementation bug? Class generated is different from CLI
Summary: Binary I/O implementation bug? Class generated is different from CLI
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 19:57 UTC by carlshark
Modified: 2008-01-02 21:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java code for issue (1.14 KB, text/plain)
2008-01-02 19:58 UTC, carlshark
Details
class file, CLI generated (1.56 KB, application/octet-stream)
2008-01-02 19:58 UTC, carlshark
Details
class file, NB6 generated (1.84 KB, application/octet-stream)
2008-01-02 19:59 UTC, carlshark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carlshark 2008-01-02 19:57:26 UTC
Is there a binary I/O implementation bug? Class file generated from NB6 is different from CLI, and throws an
EOFException whereas the CLI generated class file does not. 

The java code answers Exercise 18.5 in on Prof. Liang's book, Introduction to Java Programming: Comprehensive Edition 6/e.

"(Storing objects and arrays into a file) Write a program that stores an array of five int values 1, 2, 3, 4 and 5, a
Date object for current time, and a double value 5.5 into the file named Exercise18_5.dat."
Comment 1 carlshark 2008-01-02 19:58:14 UTC
Created attachment 54616 [details]
java code for issue
Comment 2 carlshark 2008-01-02 19:58:44 UTC
Created attachment 54617 [details]
class file, CLI generated
Comment 3 carlshark 2008-01-02 19:59:15 UTC
Created attachment 54618 [details]
class file, NB6 generated
Comment 4 carlshark 2008-01-02 21:04:32 UTC
Newbie mistake