JDK-4959932 : A synthetic class is not being flagged as such.
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-11-26
  • Updated: 2017-07-14
  • Resolved: 2017-07-14
Related Reports
Relates :  
Description
Name: ss24420			Date: 11/25/2003


As part of the fix for 4837030, javadoc's ClassDocImpl.java file received
this workaround for a javac bug:

  D 1.70  03/11/16 23:31:22 gafter        103 102 00002/00000/01222
  (prepare for) 4837030: in 1.5, the default -target should be 1.5
  (fixes an incidental bug in javadoc that was causing a javah failure)
  ...
	void addAllClasses(ListBuffer<ClassDocImpl> l, boolean filtered) {
	    try {
		if (isSynthetic()) return;
  +           // sometimes synthetic classes are not marked synthetic
  +           if (!JavadocTool.isValidClassName(tsym.name.toString())) return;

Apparently a synthetic method isn't being flagged as synthetic, possibly
because it's not being completed.

"apt" will probably need a similar workaround.  Once the underlying
bug is fixed, the workaround can be removed from the two tools.
Bug End:

======================================================================
###@###.### 10/25/04 22:37 GMT

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
17-07-2004

EVALUATION This problem should be weeded out. Who knows what other symptoms there are. ###@###.### 2003-11-26
26-11-2003