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

Summary: Binary I/O implementation bug? Class generated is different from CLI
Product: java Reporter: carlshark <carlshark>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: java code for issue
class file, CLI generated
class file, NB6 generated

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