Comments (2)
Hi Alexey. Ouch! I fixed this bug in the second printing of the book (February 2018). I had correct code in the first two editions of the book, and messed it up in the first printing of the the third edition. I publicly apologized and widely distributed the corrected code. You can also see the corrected code on the errata page. When I put the code examples on the web, though, I ran out of time and never got around to updating the code from the later chapters of the book. Thank you so much for bringing this to my attention.
I will fix this bug (in /src/effectivejava/chapter11/item83/Initialization.java) by tomorrow, but I will leave this issue open until I've updated all of the chapters that need it (at a minimum, the Github code for chapters 9-12 requires a once-over).
I apologize that I allowed this known bad code to exist in Github for over a year. I'm well aware of the responsibility that accompanies writing code that will be widely copy-pasted. I aim to illustrate best practices so that you can copy-paste my code without fear. In this case, I failed.
from effective-java-3e-source-code.
OK, I finally fixed the broken code. Sorry for the delay. I sincerely hope to find the time to go over the Github code for chapters 9-12 in the very near future (as promised), at which time I'll close this issue.
from effective-java-3e-source-code.
Related Issues (13)
- Add code sample for Item 5 HOT 1
- Item 24 is missing under chapter 4
- Item 64 is missing
- [Item 12] toString() vs. localization
- copy rights HOT 1
- [Item 81] Race condition in Intern.java
- [Item 55] Consider possibility of NPE
- add eclipse items to gitIgnore
- Anagrams exercise
- Abstract builders should not declare an abstract `build()` method
- confusing language about "EnumMap version" in Item 37
- List of java classes with overriden equals and hashcode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from effective-java-3e-source-code.