[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2018-01-08 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

Konstantin Kolinko  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #10 from Konstantin Kolinko  ---
(In reply to Konstantin Kolinko from comment #7)
> Reassigning to Tomcat 8 to track forward-porting of r1817901.
+ r1820543

Applied to Tomcat 8.5 in r1820546
Applied to Tomcat 8.0 in r1820550

SecurityClassLoad classes in Tomcat 9.0 do not load any anonymous inner
classes. Thus there is no need for this fix in Tomcat 9.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2017-12-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #9 from Konstantin Kolinko  ---
(In reply to Remy Maucherat from comment #8)
> Nice fix. Since Tomcat 8 doesn't support the old JDKs, then it probably
> doesn't need the clever hack (IMO). The improvement should still be to stop
> using anonymous inner classes when they need preload.

Http11Processor$1.class is present in Tomcat 8.5.24/tomcat-coyote.jar

Decompiling it, it is the same $SwitchMap$ support class.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2017-12-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #8 from Remy Maucherat  ---
Nice fix. Since Tomcat 8 doesn't support the old JDKs, then it probably doesn't
need the clever hack (IMO). The improvement should still be to stop using
anonymous inner classes when they need preload.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2017-12-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

Konstantin Kolinko  changed:

   What|Removed |Added

  Component|Catalina|Catalina
   Target Milestone|default |
Version|unspecified |8.0.x-trunk
Product|Tomcat 6|Tomcat 8
 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

--- Comment #7 from Konstantin Kolinko  ---
Reassigning to Tomcat 8 to track forward-porting of r1817901.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2017-12-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #6 from Konstantin Kolinko  ---
See "Re:r1817800" thread for Tomcat 7 (fix for bug 61886)
http://tomcat.markmail.org/thread/y5yyhse2rsrgg35b

Java 6 generates helper anonymous classes when the code uses switch(enum).

E.g. in Tomcat 7
org.apache.coyote.http11.AbstractHttp11Processor$1 is

static class AbstractHttp11Processor$1 {
static final int $SwitchMap$org$apache$coyote$ActionCode[];
static final int
$SwitchMap$org$apache$tomcat$util$log$UserDataHelper$Mode[];

static 
{
// the int arrays are initialized with Enum.ordinal() -> some integer value
mapping
}
}

Essentially, it is a holder class that wraps a static field that is initialized
lazily.
https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom

There is no way to assign a name to such class. As such, I went with an
alternative implementation that uses a for(int++) loop to load all available
classes starting with $1 - r1817901.

This will be in 7.0.84 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2017-04-06 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Mark Thomas  ---
Fixed in 9.0.x for 9.0.0.M20 onwards. I do not propose to back-port it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2016-04-28 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #4 from Christopher Schultz  ---
Your English is great. If there is confusion, we will ask for clarification.

Don't feel bad if we ask you to re-do your patch(es) several times. The goal is
to get the best patch possible, and make you into a successful patch-writer ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2016-04-28 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #3 from Abdessamed MANSOURI  ---
Thank you for your advices and your time :), the problem is i'm not native
english speaker and english is my fourth language, so i didn't find good names,
but i will try my best, thank you again for your time :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2016-04-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #2 from Christopher Schultz  ---
I think any reasonably descriptive name will do.

If you're considering preparing a patch, please grab the latest trunk
(currently Tomcat 9.0.x) and write your initial patch for that version. Once
it's been accepted, that patch can be back-ported to older versions of Tomcat.

Try to make your patches as small as possible: don't fix 3 bugs at once and
change all the whitespace around. If you need to re-factor some things, submit
two patches: the refactoring in the first patch with no functional changes, and
then the actual change in a second patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 47214] Inner classes that are explicitly referenced - should not be anonymous

2016-04-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=47214

--- Comment #1 from Abdessamed MANSOURI  ---
What do you suggest that classes be named?

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org